Re: execute file through servlet

Minos Chadgidakis <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
I won't answer for the transformation question, i 'm sending you a document that might help you.Anyone who wants it too can email me.

What problems me is this line:
File stylesheet = new File("C:\\jakarta-tomcat-4.1.18\\webapps\\RAI_project\\XslRepository\\TGmediaprof.xsl");

Using an absolute path is not a good idea,it makes your code non portable.
Consider using this: ServletContext.getResourceAsStream(String resource).

___________________________________________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.