I've got a simple JSP that has the use bean and set
property tags like this:
<jsp:useBean id="MyCart" scope="session"
class="CartBean">
<jsp:setProperty name="MyCart" property="*" />
</jsp:useBean>
Later in the FORM tag, I use the MyCart bean to
populate the input fields like this:
<INPUT TYPE="TEXT" NAME="phone" SIZE="25"
VALUE="<%=MyCart.getPhone()%>">
I fill in the FORM stuff and the first time I POST
back to the same JSP all of the form data is set in
the bean. When I change the data and POST again, I
still have the same data that I had the first time.
Does the set:Property only set the Bean variables if
the Bean is being create for the first time?
Or, should I have the latest form data in the Bean
every time I hit the submit button and post back to
the same JSP.
Thanks.
BTW-I'm using Tomcat 3.2.2
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com
--
To unsubscribe: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
|