This question may be asked out of ignorance, but it seems to me that using
the tag:
jsp:useBean id=MyBean scope=session class=Test.MyBean /
jsp:setProperty name=MyBean property=* /
to assign values from form fields to the bean is of limited use.
Let's assume that there are 2 text fields, A and
: What is the value of auto-assigning beans?
This question may be asked out of ignorance, but it seems to me that using
the tag:
jsp:useBean id=MyBean scope=session class=Test.MyBean /
jsp:setProperty name=MyBean property=* /
to assign values from form fields to the bean is of limited use.
Let's
1. setProperty in jsp does not have any effect if the value is empty string.
2. you use scope session
So when set A it stores it in the session bean, next time when you set B with no
A, B gets set in the bean and A remains the same (session scope).
hth
:
30-05-01 12:07 Subject: RE: What is the value of
auto-assigning beans?
PM
Please respond
30, 2001 11:49 AM
To: [EMAIL PROTECTED]
Subject: RE: What is the value of auto-assigning beans?
Yes, I considered that, but I need the values to persist. The only data
in the bean that needs to change in the bean is the data that corresponds
to the form fields. Perhaps the answer is to have