Have you tried the following from within your service()/doGet() method of the 
servlet

ServletConfig sConfig = this.getServletConfig();
ServletContext sContext = sConfig.getServletContext();
String theFileName = sContext.getRealPath("/html/StockTemplate.xsl");

As per the Servlet API javadocs:
The real path returned will be in a form appropriate to the computer and
operating system on which the servlet container is running, including the
proper path separators. This method returns null if the servlet container
cannot translate the virtual path to a real path for any reason
(such as when the content is being made available from a .war archive).

Hope this helps,

Dave Flanagan




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to