Hi everyone :
I write a
jsp page using struts.In jsp,I write:"<a href="viewinfo.do?category=<bean:write name="categ" property="category"/>&id=<bean:write name="map" property="id"/>"/><bean:write name="map" property="name"/></a>"
I use this code to get tow parameter.When I move mouse to the hyperlink the statusbar display:"http://localhost:3030/myweb/jsp/viewinfo.do?category=birds&id=3".It's right.But when I click it
Tomcat report error:
////////////////////////////////////////////////////////////////
HTTP Status 400 - Invalid path /jsp/viewinfo was requested
--------------------------------------------------------------------------------
type Status report
message Invalid path /jsp/viewinfo was requested
description The request sent by the client was syntactically incorrect (Invalid path /jsp/viewinfo was requested).
--------------------------------------------------------------------------------
In my struts-config.xml there is action for the request indeed.
/////////////////////struts-config.xml///////////////////////////////////
........................................................
<action path="/viewinfo" type="lyo.hotmail.shopping.Showinfo" input="filemiss.jsp">
<forward name="success" path="/jsp/viewinfo.jsp"/>
</action>
Even I add the "<forward name="viewinfo" path="/viewinfo.do"/>" it can't work too. :roll:
Finally,I change the jsp code to ":"<a href="myweb/jsp/viewinfo.do?category=<bean:write name="categ" property="category"/>&id=<bean:write name="map" property="id"/>"/><bean:write name="map" property="name"/></a>"
It also can't work property and the error is the same as before.
Why?