wood burning stoves
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP setproperty" Watch "JSP setproperty" New topic

JSP setproperty

Paul Richards

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
I agree. Here's the link: http://aspose.com/file-tools
subject: JSP setproperty
It's not a secret anymore!