I am trying to convert the struts-example application to use:
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>/do/*</url-pattern>
</servlet-mapping>
And in the index.jsp page, I've change the "tour" link from:
<html:link page="/tour.do">
<font size="-1"><bean:message key="index.tour"/></font>
</html:link>
to:
<html:link page="/do/tour">
<font size="-1"><bean:message key="index.tour"/></font>
</html:link>
And have changed nothing in struts-config.xml. However, when I try to execute
this link (http://localhost/NASApp/struts-example/do/tour), I get the error:
[18/Aug/2001 10:16:53:9] info: --------------------------------------
[18/Aug/2001 10:16:53:9] info: action: Processing a GET for /tour
[18/Aug/2001 10:16:53:9] info: --------------------------------------
[18/Aug/2001 10:16:53:9] info: --------------------------------------
[18/Aug/2001 10:16:53:9] info: action: Setting locale 'en_US'
[18/Aug/2001 10:16:53:9] info: --------------------------------------
[18/Aug/2001 10:16:53:9] info: --------------------------------------
[18/Aug/2001 10:16:53:9] info: action: No mapping available for path /tour
[18/Aug/2001 10:16:53:9] info: --------------------------------------
But in my struts-config.xml, there is the entry:
<action path="/tour"
forward="/tour.htm">
</action>
Anyone know how to fix this?
Thanks,
Matt
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/