404 error when forwarding path includes a section link
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jennie_Wang
Posted On:   Wednesday, December 10, 2003 11:23 AM

I got 404 error when the forward action path includes a section link. Here is one of action mapping in the struts-config.xml




type="com.action.MyAction"

name="myActionForm"

scope="request"

validate="true">






If just using html link in the jsp page, no any error.


Thanks,
Jennie

Re: 404 error when forwarding path includes a section link

Posted By:   Christopher_Koenigsberg  
Posted On:   Thursday, December 11, 2003 05:58 AM

In a forward, which is done all internally on the server side within the web application context, I think you are not able to specify a URI as you are trying to do.


So, since it is just a filename and not a URI, you cannot add what you want after a "#" and have it interpreted as an anchor within an html document, as you are apparently trying -- instead, in that situation, you are asking it to just look for a file, named "myaction.jsp#section1".

About | Sitemap | Contact