• Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling method with parameter  RSS feed

 
Mathias Nilsson
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I have a getSubCategory( Category ) in my action.

Can I call this in JSTL , OGNL?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66158
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mathias Nilsson:
I have a getSubCategory( Category ) in my action.


I have no idea what you mean by this.

Can I call this in JSTL , OGNL?


OGNL = Ornithological Group Needing Leadership?
[ August 04, 2007: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66158
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You want to read this.
 
Mathias Nilsson
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Object Graph Navigation Language ( OGNL )

If was wondering if I could call a method in my action passing a parameter to it. Or if there is some way of using JSTL to call a method with a parameter
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66158
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
References to actions are usually not available in a JSP page. Are you doing something odd to make it so?

Even so, no, the EL is purposefully designed to be unable to call general methods.

And, when using odd acrynoms in a post, it's best to not assume everybody understands what they are.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!