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

bean method's convention

 
Naveed Ali
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think we can't.
 
Colin Fletcher
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic