struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Jerry" <tom.snow.je...@gmail.com>
Subject Re: exception
Date Thu, 07 Sep 2006 07:23:46 GMT
package code;
import org.apache.struts.action.ActionForm;

public class LoginForm extends ActionForm
{
    private String login;
    private String password;
    public String getLogin() {
        return login;
    }
    public void setLogin(String login) {
        this.login = login;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
}

On 9/7/06, Tom Jerry <tom.snow.jerry@gmail.com> wrote:
>
> I am certain that my code.LoginForm class extends
> org.apache.struts.action.ActionForm
>
>
> On 9/7/06, Tom Jerry <tom.snow.jerry@gmail.com> wrote:
> >
> > I am using Struts 1.2.9
> >
> >
> > On 9/7/06, David Friedman < humble@ix.netcom.com> wrote:
> > >
> > > Are you certain your code.LoginForm class extends
> > > org.apache.struts.action.ActionForm? That could
> > > asily explain the problem.
> > >
> > > Then again you could get an exact reason by
> > > naming the specific Struts 1.2.X version you
> > > are using (it doesn't appear to be 1.2.7).
> > > Then you could check the svn tag for class
> > > org.apache.struts.config.FormBeanConfig
> > > line 212 which is ithe method createActionForm
> > > as described in your SEVERE stack trace below.
> > > I'll be up for another hour in case you're
> > > still up and have the exact version for me
> > > to lookup in SVN (takes a minute, if that).
> > >
> > > Regards,
> > > David
> > >
> > > -----Original Message-----
> > > From: Tom Jerry [mailto: tom.snow.jerry@gmail.com]
> > > Sent: Thursday, September 07, 2006 1:33 AM
> > > Cc: Struts Users Mailing List
> > > Subject: Re: exception
> > >
> > > This is the entire stack....
> > >
> > > SEVERE: Error creating form bean of class code.LoginForm
> > > java.lang.NullPointerException
> > >     at org.apache.struts.config.FormBeanConfig.createActionForm(
> > > FormBeanConfig.java:212)
> > >     at org.apache.struts.util.RequestUtils.createActionForm(
> > > RequestUtils.java :292)
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message