try this
<action-mappings>
<action path="/fundlist"
type="com.projectcast.sfundm.FundListAction"
scope="request">
<forward name="success"
path="/fundlist.jsp"/>
<forward name="failure"
path="/fundlist.jsp"/>
</action>
I guess you do not require the /WEB-INF/web
Rakesh Ayilliath
(Software Engineer)
Synergy IT Innovations Pvt Ltd,
#196, 1st Floor, 9th Cross,
HMT Layout, RT Nagar
Bangalore 560032
[EMAIL PROTECTED]
www.ayilliath.8m.com
----- Original Message -----
From: "Aapo Laakkonen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 6:52 PM
Subject: Mappings, bloody mappings
> I have problem... It might be in my understanding, but here it goes...
>
> I have these mappings:
>
> <form-beans>
> <form-bean name="FundUpdateForm"
> type="com.projectcast.sfundm.FundForm"/>
> </form-beans>
>
> <global-forwards>
> <forward name="funds"
> path="/fundlist.do"/>
> </global-forwards>
>
> <action-mappings>
> <action path="/fundlist"
> type="com.projectcast.sfundm.FundListAction"
> scope="request">
> <forward name="success"
> path="/WEB-INF/web/fundlist.jsp"/>
> <forward name="failure"
> path="/WEB-INF/web/fundlist.jsp"/>
> </action>
> <action path="/editfund"
> type="com.projectcast.sfundm.FundSelectAction"
> scope="request">
> <forward name="success"
> path="/WEB-INF/web/editfund.jsp"/>
> <forward name="failure"
> path="/WEB-INF/web/editfund.jsp"/>
> <forward name="cancel"
> path="/funds.do"/>
> </action>
> <action path="/updatefund"
> type="com.projectcast.sfundm.FundUpdateAction"
> name="FundUpdateForm"
> scope="request"
> input="/WEB-INF/web/editfund.jsp"
> validate="true">
> <forward name="success"
> path="/editfund.do"/>
> <forward name="cancel"
> path="/funds.do"/>
> <!-- I have also tried this
> <forward name="cancel"
> path="/fundlist.do"/>
> -->
> </action>
> <action-mappings>
>
> Then some explanation. I have fundlist action that displays all the funds,
> ok. Then
> when user selects one fund on the list struts executes editfund action and
> gets all
> needed information about that fund. Everything works correctly at this
> point. Then
> editfund.jsp has a form that has action mapped to updatefund action and
also
> has
> an cancel button. If cancel button is pressed the updatefund action gets
> executed,
> am I right? Here is first two lines from UpdateAction class:
>
> if (isCancelled(request))
> return (mapping.findForward("cancel"));
>
> Then it should go back to fundlist.do action, but all what I get is HTTP
400
> Bad Request error. What I am doing wrong? Or should I do something
> different to get the same results? And I'm running struts on Apache Test
> Environment 3.2.1 for Visual Age 3.5.3.
>
> Thanks,
> Aapo Laakkonen
>
> -- Aapo Laakkonen, +358 (50) 33 99 682, ProjectCast Ltd, Helsinki,
Finland.
>
>