This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Property attrin JSP with beans" Watch "Property attrin JSP with beans" New topic
Author

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.

Regards,
Raghu
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

clear?


http://learnertobeginner.blogspot.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Property attrin JSP with beans
 
Similar Threads
Treemap with logic iterator
how to set the <bean:message key="abc.xyz" /> into jsp:setProperty parameter
Populate attribute of html:link tag with bean property
JasperException: Cannot find bean under name contractors
Question on html struts tag