File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Property attrin JSP with beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Property attrin JSP with beans" Watch "Property attrin JSP with beans" New topic

Property attrin JSP with beans

Raghuraman Muthuswamy
Ranch Hand

Joined: Mar 18, 2003
Posts: 73
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.

Poobhathy Kannan
Ranch Hand

Joined: May 26, 2004
Posts: 94
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

I agree. Here's the link:
subject: Property attrin JSP with beans
It's not a secret anymore!