This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
jQuery in Action, 2nd edition
 
subject: JSP setproperty