I don't think that's correct.  As long as you refer to the "password"
property in your JSP, you may use getPassword/setPassword, regardless
of the name of the data member they encapsulate.

In other words, it's not the name of the private data member that
determines the names of your public accessors.  It's the name used in
your JSP's.

-- Jim

Oliver Refl� <[EMAIL PROTECTED]> writes:

> Yes it has to be the same, if you have "test" you have to implement
> getTest() and setTest()
> 
> -----Urspr�ngliche Nachricht-----
> Von: Jose Casas [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 26. M�rz 2002 15:42
> An: 'Struts Users Mailing List'
> Betreff: struts get and set methods in formbeans
> 
> 
> 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]>

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

Reply via email to