You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Antonio Weber <an...@akt-infosys.de> on 2001/09/05 09:33:57 UTC

AW: AW: Confused about everything ... - I think now it's a prob lem with the ActionForm

Jeah you are right !!
Damn fault ;)
Thank you very much !

Antonio

-----Ursprüngliche Nachricht-----
Von: Jean-Noel Ribette [mailto:jnribette@mail.improve.fr]
Gesendet: Mittwoch, 5. September 2001 09:24
An: struts-user@jakarta.apache.org
Betreff: Re: AW: Confused about everything ... - I think now it's a
problem with the ActionForm


If your method are getName() and setName(...) the property name is "name" 
without caps (javabean spec).  I think you are using "Name" instead of 
"name" in your jsp.

Jean-Noel


At 09:15 05/09/2001, you wrote:
>Thank you very much !!
>
>Now it works, but now i have another problem.
>it's about the action form. when i call the action
>i get the error:
>
>No getter method for property Name of bean
>org.apache.struts.taglib.html.BEAN
>
>my class looks like this:
>
>import org.apache.struts.action.ActionForm;
>
>public class LookupActionForm extends ActionForm {
>
>     private String name;
>
>     public void setName(String pName) {
>        name = pName;
>     }
>
>     public String getName() {
>        return(name);
>     }
>
>     public LookupActionForm() { }
>
>}
>
>where can be the Problem ?
>
>
>-----Ursprüngliche Nachricht-----
>Von: Ted Husted [mailto:husted@apache.org]
>Gesendet: Dienstag, 4. September 2001 17:27
>An: struts-user@jakarta.apache.org
>Betreff: Re: Confused about everything ...
>
>
>The one other thing to check is for something like this in your web.xml
>where the Struts servlet is loaded
>
>     <init-param>
>       <param-name>config</param-name>
>       <param-value>/WEB-INF/struts-config.xml</param-value>
>     </init-param>
>
>If your struts-config.xml is modelled after most of the examples, it
>probably has this in it
>
>     <action
>         path="/admin/Reload"
>         type="org.apache.struts.actions.ReloadAction"/>
>
>if so, try /admin/reload.do and see if you get an OK on the screen. Then
>try the other URI again.
>
>You might also try (this part of) the application under Tomcat or Resin,
>to be sure it is not a WegLogic deployment issue.
>
>-- Ted Husted, Husted dot Com, Fairport NY USA.
>-- Custom Software ~ Technical Services.
>-- Tel +1 716 737-3463
>-- http://www.husted.com/about/struts/
>
>
>Antonio Weber wrote:
> >
> > Hi !!
> >
> > I get an ServletException on my bea with this message
> >
> > Cannot retrieve mapping for action /LookupAction
> > Must I add in the web-xml the class as an servlet ??
> > I don't think so but no I'm so confused ...
> >
> > In my struts-config.xml is this entry:
> >
> > <action path="/LookupAction" type="lookup.servlets.LookupAction"
> > name="LookupActionForm"  input="/lookup/lookups.jsp"></action>
> >
> >
> > in my web.xml I have for the <servlet-name>action
> > a *.do mapping...
> > the form-tag looks like this:
> >
> > <form action="/LookupAction.do" ...
> >
> > where is my fault ? whats going wrong ?
> > Please help me !!!!