Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Property attrin JSP with beans

 
Raghuraman Muthuswamy
Ranch Hand
Posts: 73
  • 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
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic