I may be wrong but I don't think you can use .do in a forward definition unless it's a redirect. AFAIK, you can only forward to real files (jsps), not mapped files like .do.

David






From: [EMAIL PROTECTED]
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: html:link question
Date: Fri, 8 Nov 2002 06:49:16 -0700

Hello,

I'm having a problem with html:link which gives me the Cannot "retrive
ActionForward named /admin" message. My struts config has:

<global-forwards>
<forward name="welcome" path="/welcome.do"/>
<forward name="adminMenu" path="/adminMenu.do" />
</global-forwards>


<action-mappings>
<action path="/welcome"
type="org.apache.struts.actions.ForwardAction"
parameter="/WEB-INF/pages/welcome.jsp"/>

<action path="/adminMenu"
type="org.apache.struts.actions.ForwardAction"
parameter="/WEB-INF/pages/admin-menu.jsp"/>
</action-mappings>

My jsp has:

<html:link forward="adminMenu">Administrative Functions</html:link>

This gives me the error message. However, if I replace "adminMenu" with
"welcome" it works just fine. Also, if I use the page attribute it works
for welcome.do and not for adminMenu.do. Any help is appreciated!

Mike

--
To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to