This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes bean method's convention Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "bean method Watch "bean method New topic
Author

bean method's convention

Naveed Ali
Ranch Hand

Joined: Aug 30, 2002
Posts: 41
Hi all,

Can we declare mehtods in bean other than the standard naming convention(getter/setter) and call these mehtods in our jsp. If yes then it means that we can create a bean without any getter/setter mehtod. How it is?

thnx

Naveed
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
I think we can't.


SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Colin Fletcher
Ranch Hand

Joined: Sep 10, 2004
Posts: 200
I am not sure why you would want to...

If you declare methods in your bean, you might be able to use a tag library to access them. The functions in the bean would have to be public static and take a reference to your bean...

-C


SCJP 1.4 SCWCD 1.4
 
 
subject: bean method's convention
 
Similar Threads
HFEJB mock question, Page 367
JavaBean
Showing Sequence No with datatable
Questions about java bean
simple program