[Home] [By Thread] [By Date] [Recent Entries]
You can keep your XML/XSL under WEB-INF so they are secure. For example:
- basic_app
|- css
|- images
|- WEB-INF
|- classes
|- SaxonServlet.class
|- content
|-replace_data.xml
|- styling
|- test.xsl
|- lib
|- saxon.jarYou can set an intitial param for the docroot relative path to your content in your /WEB-INF/web.xml. For example: <context-param> <param-name>client.content.dir</param-name> <param-value>/WEB-INF/content/</param-value> </context-param> Then you will need to either getRealPath or getResourceAsStream based on an argument starting from the WEB-INF. For example: StringBuffer path = new StringBuffer(ServletContextObject.getRealPath(ServletContextObject.getInitParameter("client.content.dir"))); path.append(filename_var); best, -Rob Joeri Belis wrote: ENV: Linux Redhat 6.1, Saxon 6.5.2, Tomcat 3.3.1 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



