File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Property attrin JSP with beans

 
Raghuraman Muthuswamy
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I have been trying to access a bean from a JSP page. I want to know how the property attribute takes the attribute value from the bean. Does it take the property from getXXX or setXXX. If so then i think XXX will be the property or it takes the value of the variable we use. Explain me about the property attribute in detail. Your help is very much appreciated.

Regards,
Raghu
 
Poobhathy Kannan
Ranch Hand
Posts: 94
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For every property, the class must have two publicly accessible methods, referred to as the getter and the setter, that allow the JSP engine to access or mutate the bean�s properties.

The name of the method that accesses the property should be getXXX() and the name of the method that mutates the property should be setXXX(), where XXX is the name of the property with the first character capitalized

clear?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic