[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: serving content from outside the context

thakur do-not-reply at jboss.com
Mon Jul 16 15:06:06 EDT 2007


Hi

I am using Jboss-4.0.5 application server 
I would like to include a HTML file which is placed outside the web application (eg: sample.war) in a JSP.

im using the following to include the HTML file
<jsp:include page='<%=filepath%>'/>

The issue is filepath is considered with reference to the application 
example:
if filepath=C:/html/static/temp.html
then JSP include tag is considering path as /sample/C:/html/static/temp.html

But the structure for the HTML file is C:/html/static/temp.html ( local hard disk )

How to include the HTML file in such case?
Please help.

Regards


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064687#4064687

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064687



More information about the jboss-user mailing list