Struts, forward and uri images problem
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Tim_Price
Posted On:   Thursday, April 22, 2004 03:14 AM

I have this structure: myApp.war | |--welcome | | | |-welcome.jsp | |-welcome.jpg | |--WEB-INF(...) Inside welcome.jsp there is a line like " " If struts send an redirect from an action to welcome.jsp, image seems ok. If struts do a forward, the application server says "MAPPING configuration error for request URI /welcome.jpg" The cause is that when struts a redirect, context path changes to http://myhost:8080/miApp/welcome, but when struts perform a forward context path is http://myhost:8080/miApp/ I tried to write the next html tag in file: but does not work. Anyone can help   More>>

I have this structure:
myApp.war
|
|--welcome
| |
| |-welcome.jsp
| |-welcome.jpg
|
|--WEB-INF(...)


Inside welcome.jsp there is a line like " "

If struts send an redirect from an action to welcome.jsp, image seems ok.
If struts do a forward, the application server says "MAPPING configuration error for request URI /welcome.jpg"

The cause is that when struts a redirect, context path changes to http://myhost:8080/miApp/welcome, but when struts perform a forward context path is
http://myhost:8080/miApp/

I tried to write the next html tag in file:
but does not work.

Anyone can help me?

   <<Less

Re: Struts, forward and uri images problem

Posted By:   Jerome_Iffrig  
Posted On:   Saturday, April 24, 2004 07:04 PM

According to the Servlet standard, the content of the WEB-INF directory of your webapp is ment to be "protected", that is not accessible from the client side.


I hope it helps.
Jerome.

About | Sitemap | Contact