Can you access the edit or remove actions by entering the URL in your
address bar?
e.g. http://localhost:8080/myapp/admin/edit.do?parameter=XXX

Steve

> -----Original Message-----
> From: Ajay Patil [mailto:[EMAIL PROTECTED]
> Sent: July 27, 2003 11:21 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Multiple modules - Please help
>
>
> Hello,
>
> Thanks for the lightning response !
>
> Actually, I am not switching modules. I am trying to forward
> to another action in the same module. I still get the 404 error
> with the contextRelative attribute in forward definition.
>
> Inside web.xml:
> ---------------
> <init-param>
>      <param-name>config/admin</param-name>
>      <param-value>/WEB-INF/struts-admin.xml</param-value>
> </init-param>
>
>
> Inside struts-admin.xml
> -----------------------
> <action path="/list"
>         type="xxx.yyy.zzz.ListAction">
>   <forward name="add"    path="/add.jsp">    <!-- THIS WORKS OK -->
>   <forward name="edit"   path="/edit.do">    <!-- 404 ERROR     -->
>   <forward name="remove" path="/remove.do">  <!-- 404 ERROR     -->
> </action>
>
> <action path="/edit"
>         type="xxx.yyy.zzz.EditAction">
>   <forward name="edit" path="/edit.jsp">
> </action>
>
> <action path="/remove"
>         type="xxx.yyy.zzz.RemoveAction">
>   <forward name="edit" path="/remove.jsp">
> </action>
>
> It was working when I had a single configuration file. I created
> struts-admin.xml file and removed the admin (module name)
> prefix from all paths.
>
> Now the JSP forwards are working.
> But the action-chainings give me 404 errors.
>
> Thanks for patiently reading through my problem.
>
> Ajay
>
>
> > If the action you are forwarding to is in a different module then
> > you need to use the SwitchAction or specify contextRelative=true on
> > your forward definition.
>
> >  <forward name="edit" path="/modulename/edit.do"
> > contextRelative="true">
>
> > Steve
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to