You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Wyn Easton <wy...@yahoo.com> on 2002/02/03 22:06:14 UTC
How set:Property works?
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: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>