This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths 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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "bean method Watch "bean method New topic

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?


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...


SCJP 1.4 SCWCD 1.4
subject: bean method's convention
It's not a secret anymore!