Is it a session bean? If so, the properties will stay the same; I'd guess
any
values not filled in (i.e. NULL) will mean the corresponding setter will
not get called as that value will not appear in the request. So you may
want to initialise the bean or something at the top of the final JSP,
the one in the action="called.jsp".

Regards,
Joe.

----- Original Message -----
From: "Jason Garnett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 04, 2000 6:29 PM
Subject: Bean property is not set when text field is empty


> Hi,
>
> My JSP page contains a number of text fields with a send button. I am
> using setProperty to update the properties of my bean with the contents
> of the text fields. When I fill in the fields on the page and hit the
> send button the bean properties are updated (no problem so far). Now if
> I go back and remove the text from one of the fields and hit send again
> the corresponding property in the bean retains the original string (it
> should be set to null). Can anyone explain why this is happening or
> suggest a fix?
>
> Thanks,
> Jason Garnett
> [EMAIL PROTECTED]
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to