You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Aleksi Kallio <ak...@csc.fi> on 2002/06/06 13:37:55 UTC

A basic action mapping doesn't work

I have this action mapping:

    <action path = "/createMediaDesc"
            type = "fi.funet.medar.actions.UpdateRecording"
            name = "RecordingForm"
           scope = "session">
         <forward name = "success" path = "/insert_ok.jsp" />
         <forward name = "review" path = "/createMediaDesc" />
    </action>


It produces the following error (HTTP Error 404):

type: Status report
message: /createMediaDesc
description: The requested resource (/createMediaDesc) is not available.


The funny thing is that if type attribute is replaced with a forward,
everything works fine...


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: A basic action mapping doesn't work

Posted by ajTreece <aj...@sun.com>.
createMediaDesc is your "action" so the forward path should be "/createMediaDesc.do"


Later, aj


If it is an action then try path="/createMediaDesc.do"
If it is a tiles definition then try path="creatMediaDesc"

Aleksi Kallio wrote:

> I have this action mapping:
> 
>     <action path = "/createMediaDesc"
>             type = "fi.funet.medar.actions.UpdateRecording"
>             name = "RecordingForm"
>            scope = "session">
>          <forward name = "success" path = "/insert_ok.jsp" />
>          <forward name = "review" path = "/createMediaDesc" />
>     </action>
> 
> 
> It produces the following error (HTTP Error 404):
> 
> type: Status report
> message: /createMediaDesc
> description: The requested resource (/createMediaDesc) is not available.
> 
> 
> The funny thing is that if type attribute is replaced with a forward,
> everything works fine...
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>