tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gohil, Hemant" <HGo...@dylt.com>
Subject help with diretories in servlets
Date Fri, 08 Feb 2002 18:31:08 GMT
> Hi !
> 
> I am trying to create a samll web application which will 
> query the database depending upon the input parameters 
> provided, generates XML file from the Result Set, applies 
> XSLT and generates HTML, which in turn I want to display
> in a frame.
> 
> I want to organize those files in following way relative to my web
> application path.
> 
> Reports ( my root path )
>   |
>   |
>   - forms ( which will contain forms to accept input parameters )
>   |
>   - xml ( which will store converted XML file from the Result Set )
>   |
>   - xslt ( which will contain pre generated XSLT files )
>   |
>   - html ( which will store transformed HTML file )
>  
> 
> I am initializingfollowing variables 
> 		_xsltFileName = request.getContextPath() +
> "\\xslt\\newCommodities.xslt" ;
> 		_xmlFileName = request.getContextPath() +
> "\\xml\\newCommodities.xml" ;
> 		_htmlFileName = request.getContextPath() +
> "\\html\\newCommodities.html" ;
> 
> and using following code to transform and display HTML.
> 
> 		transformXML( _xmlFileName, _xsltFileName, _htmlFileName ) ;
> 		response.sendRedirect( _htmlFileName ) ;
> 
> 
> What is wrong with this, as I am not able to create HTML file in /html/
> directory, and obviously not
> able to display the file as it doesn't exist there.
> 
> Thankyou very much in advance for the help.
> 
> -Hemant
> 
> 
> 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message