yes !!! Both servlet-api.jar and struts.jar are in WEB-INF/lib folder. Then
I added these 2 jar files to the build path of that folder.

On 9/7/06, Gareth Evans <[EMAIL PROTECTED]> wrote:

Just out of interest, where have you put the struts.jar file? in
/WEB-INF/lib?

Tom Jerry wrote:
> 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 <[EMAIL PROTECTED]> wrote:
>>
>> I am certain that my code.LoginForm class extends
>> org.apache.struts.action.ActionForm
>>
>>
>> On 9/7/06, Tom Jerry <[EMAIL PROTECTED]> wrote:
>> >
>> > I am using Struts 1.2.9
>> >
>> >
>> > On 9/7/06, David Friedman < [EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
>> > > 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: [EMAIL PROTECTED]
>> > > For additional commands, e-mail: [EMAIL PROTECTED]
>> > >
>> > >
>> >
>>
>

--
Gareth Evans

Senior Developer

MSoft eSolutions Limited
Technology Centre
Inward Way
Rossmore Business Park
Ellesmere Port
Cheshire
CH65 3EN

--
Tel:    +44 (0)870 0100 704
Fax:    +44 (0)870 9010 705
E-Mail: [EMAIL PROTECTED]
Web:    www.msoft.co.uk

----------------------------------------------
Terms:
Please note that any prices quoted within this e-mail are subject to VAT.
All program details and code described in this e-mail are subject to
copyright (c) of MSoft eSolutions Limited and remain the intellectual
property of MSoft eSolutions Limited.
Any proposal or pricing information contained within this e-mail are
subject to MSoft eSolutions' Terms and Conditions
----------------------------------------------
Disclaimer:
This message is intended only for use of the addressee. If this message
was sent to you in error, please notify the sender and delete this
message. MSoft eSolutions Limited cannot accept responsibility for
viruses,
so please scan attachments. Views expressed in this message do not
necessarily reflect those of MSoft eSolutions Limited who will not
necessarily be bound by its contents.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to