On Mon, 17 Feb 2003, Curley, Thomas wrote:
>......
>
> problem - the bean does not get populated when I hit submit (ie) when I call
> getFname() from addUserA.jsp its null. When I reload the html the form also
> resets (ie) fields do not retain their value
>......
> <jsp:useBean id='form' class='login.bean.AddUserForm' scope='request'>
> <jsp:setProperty name='form' property='*' />
> </jsp:useBean>
>......
>
> AddUserForm
> --------------------
>
> package login.bean;
>
> public class AddUserForm
> {
>
> public String getFname()
> {
> return fname != null ? fname: "";
> }
> public void setFname(String fname)
> {
> this.fname = fname;
> }
>
> private String uname;
> }
Are you sure of your code above ? did you compile it ?
You define a property uname and you use fname. It's strange, no ?
Pascal NICOLAS University of ANGERS
E Mail : [EMAIL PROTECTED]
Web Page : http://www.info.univ-angers.fr/pub/pn/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]