*
The moose likes Servlets and the fly likes JSP setproperty Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP setproperty" Watch "JSP setproperty" New topic
Author

JSP setproperty

Paul Richards
Greenhorn

Joined: Jul 25, 2001
Posts: 19
Hi all
I am a little confused as to the purpose of the JSP "setproperty".
Am I correct in saying that if within a JSP page I have an input field within a form and use the setproperty to set a bean property within the same JSP page then the setproperty will not do anything, because it is required to be used in a different JSP (which is requested from the JSP with the input field).

If this is the case, what are the advantages of this as regards to the first JSP posting to a servlet and this servlet setting the bean properties using the setter properties and then requesting the second JSP to dislay the bean properties.
cheers Paul
 
Don't get me started about those stupid light bulbs.
 
subject: JSP setproperty
 
Similar Threads
usebean getProperty and setProperty in the same form field
setProperty tag in jsp:useBean
Multiple submit buttons with JavaBeans
how to get data from servlet to jsp
Newbie -- Passing bean information while redirecting