You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Peter Doyle <pe...@teomedia.com> on 2001/02/01 16:05:03 UTC
RE: "Invalid Path" plague
Hi,
I have tried the build you suggested. The problem is not entirely fixed.
Im calling an action like this:
http://192.168.10.10:8082/mm/manager/editAccount.do?action=Create
Which returns the error
500 Internal Server Error
/mm/manager/editAccount.do:
javax.servlet.ServletException: Exception thrown processing JSP page.
javax.servlet.jsp.JspTagException: Cannot retrieve mapping for specified
form action path "/saveAccount"
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:487)
at
jrun__manager__account2ejsp14._jspService(jrun__manager__account2ejsp14.java
:126)
In my account.jsp I have
<html:form action="manager/saveAccount.do" focus="userID">
I've tried various combinations of /manager/ and manager/
My struts-config reads
<!-- Edit Account -->
<action path="/manager/editAccount"
type="com.apackage.EditAccountAction"
name="accountForm"
scope="request"
validate="false">
<forward name="failure" path="/manager/account.jsp"/>
<forward name="success" path="/manager/account.jsp"/>
</action>
<!-- Save Account -->
<action path="/manager/saveAccount"
type="com.apackage.SaveAccountAction"
name="accountForm"
scope="request"
input="/manager/account.jsp">
<forward name="success" path="/manager/editCompany.do?action=Create"/>
</action>
Am I doing sth wrong or is it struts?
Peter
-----Original Message-----
From: Craig R. McClanahan [mailto:Craig.McClanahan@eng.sun.com]
Sent: 28 January 2001 04:19
To: struts-user@jakarta.apache.org
Subject: Re: "Invalid Path" plague
Peter Doyle wrote:
> Hi,
> Part of my application involves the user filling in multiple forms as
part
> of a wizard.
> I'm having trouble with paths. My forms are not in my web app root they
are
> in a sub directory.
> I've followed the struts example as a basis for this application but I
> cannot satisfy the action mappings for the form action.
>
> What I want is for the user to go from one form to the next after they
have
> entered the correct details.
> I've tried including <html:base/> but this doesn't seem to help.
>
> Any help before I go postal?
>
The way that the <html:form> tag handles the "action" parameter has been
improved by a patch that I applied today. Among other things, you should be
able to use paths with or without a leading slash (as you did in your
example),
and it should work for "nested" paths as well, such as
"/admin/saveAccount.do".
Could you please try the nightly build 20010128 and see if you are still
having
difficulties?
>
> Cheers,
> Peter
>
Craig