Subject: Re: struts get and set methods in formbeans From: "David Bolsover" <[EMAIL PROTECTED]> === Hi Jose.
Check out the standard rules for JavaBeans - generally: private String foo; public String getFoo(){ return this.foo; } public void setFoo(String foo){ this.foo = foo; } Note the case of variable and get/set methods. If you use an IDE like JBuilder, you will find that there are various helper tools available to generate the get/set methods from the variables. regards David Bolsover [EMAIL PROTECTED] "Jose Casas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hello, > > I got a question about the get and set methods in the form beans. Does the > get or set method need to have the name of the member variable in it? > For example, if I have a member variable named userPassword do I have to > have a get/set method called getuserPassword/setuserPassword or can I put > getPassword/setPassword. I guess what I'm asking is does the variable have > to appear exactly the same in the get/set method. > > Thank you. > > > > ********************************************************************** > This email and any files transmitted with it are confidential > and intended solely for the individual or entity to > whom they are addressed. If you have received this email > in error destroy it immediately. > ********************************************************************** > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>