You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Caroline Jen <ji...@yahoo.com> on 2004/09/21 21:40:20 UTC
Cannot retrieve mapping for action /content/AddLinks
This is the error message that I got in the browser:
'Cannot retrieve mapping for action /content/AddLinks'
What would be the cause of this error message? My
eyes do not see the problem. Your experience and help
are much needed.
I have the action mapping in the struts-config.xml
like:
<action
path="/content/AddLinks"
type="org.dhsinfo.content.doSomething3"
name="addLinkForm"
scope="request"
validate="false"
input=".frame.content">
<forward
name="success"
path=".link.Confirmation"/>
</action>
and the form that invokes this action is like:
<html:form action="/content/AddLinks">
<fieldset>
<table>
<tr>
<td align="left" nowrap="nowrap">
Select Page to Add Links:
</td>
<td>
<bean:define id="pageList" name="PageBeans"
scope="request" type="java.util.ArrayList" />
<html:select size="1" property="page"
multiple="false">
<html:options collection="pageList"
property="name" labelProperty="name"/>
</html:select>
</td>
</tr>
<tr>
<td align="left" nowrap="nowrap">
Type in Link Name or Title:
</td>
<td>
<input type="text" name="linkname" size="60"
/>
</td>
</tr>
<tr>
<td align="left" nowrap="nowrap">
Type or Paste in Link Location:
</td>
<td>
<input type="text" name="linklocation"
value="http://" size="60" />
</td>
</tr>
<tr>
<td>
<br />
</td>
<td>
<html:submit>Submit Updates</html:submit>
<html:submit>Reset Form</html:submit>
</td>
</tr>
</html:form>
<tr>
<td>
<br />
</td>
</tr>
<tr>
<td>
Links History
</td>
<td>
<input type="text" name="xxx" size="60"/>
</td>
<td>
<button type="button">
List History
</button>
</td>
</tr>
<tr>
<td>
<br />
</td>
</tr>
</table>
</fieldset>
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Cannot retrieve mapping for action /content/AddLinks
Posted by Caroline Jen <ji...@yahoo.com>.
Thanks for helping me again. Yeah, the problem is
that I did not re-start the Tomcat after those changes
are made.
Now, everything displays as expected.
--- Matt Bathje <mp...@ntsource.com> wrote:
> Caroline Jen wrote:
> > This is the error message that I got in the
> browser:
> > 'Cannot retrieve mapping for action
> /content/AddLinks'
> >
> >
> > What would be the cause of this error message? My
> > eyes do not see the problem. Your experience and
> help
> > are much needed.
> >
> > I have the action mapping in the struts-config.xml
> > like:
> >
> > <action
> > path="/content/AddLinks"
> > type="org.dhsinfo.content.doSomething3"
> > name="addLinkForm"
> > scope="request"
> > validate="false"
> > input=".frame.content">
> > <forward
> > name="success"
> > path=".link.Confirmation"/>
> > </action>
> >
> > and the form that invokes this action is like:
> >
> > <html:form action="/content/AddLinks">
>
> Everything seems to look good here. Make sure that
> the class
> org.dhsinfo.content.doSomething3 actually exists in
> the webapp's classpath.
>
> Also, you may try taking making the html:form action
> be
> "content/AddLinks" instead of "/content/AddLinks" -
> it shouldn't help,
> but just in case...
>
> If neither of those helps..are you sure you
> restarted your webapp after
> adding the action to struts-config.xml :)
>
> Matt
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Cannot retrieve mapping for action /content/AddLinks
Posted by Matt Bathje <mp...@ntsource.com>.
Caroline Jen wrote:
> This is the error message that I got in the browser:
> 'Cannot retrieve mapping for action /content/AddLinks'
>
>
> What would be the cause of this error message? My
> eyes do not see the problem. Your experience and help
> are much needed.
>
> I have the action mapping in the struts-config.xml
> like:
>
> <action
> path="/content/AddLinks"
> type="org.dhsinfo.content.doSomething3"
> name="addLinkForm"
> scope="request"
> validate="false"
> input=".frame.content">
> <forward
> name="success"
> path=".link.Confirmation"/>
> </action>
>
> and the form that invokes this action is like:
>
> <html:form action="/content/AddLinks">
Everything seems to look good here. Make sure that the class
org.dhsinfo.content.doSomething3 actually exists in the webapp's classpath.
Also, you may try taking making the html:form action be
"content/AddLinks" instead of "/content/AddLinks" - it shouldn't help,
but just in case...
If neither of those helps..are you sure you restarted your webapp after
adding the action to struts-config.xml :)
Matt
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org