Peter Smith wrote:
>
> Thanks Chris, it works if I gives the absolute path of the file to
> FileReader constructor, such as
> C:\\jakarta-tomcat\\webapps\\ROOT\\WEB-INF\\classes\\normal.xml
>

 If you put the xml file and stylesheet in the root directory:

     C:\\jakara-tomcat\\webapps\\ROOT

 then you could avoid hardcoding any paths, plus you could
(optionally) let clients who could deal with it directly
access the xml/xsl files. If you're going to deploy the webapp
more than one place, then avoiding hardcoded paths would make
your life easier.

 If you have to worry about deployment or portability (either
across servlet containers, or even within versions of Tomcat)
it might be a mistake to put stuff in the tomcat_home/bin
directory.


-cks

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to