• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP setproperty

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic