• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL if-else  RSS feed

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, the JSTL always make me headache.


The above works

But this above [b[NOT works[/b]. Both did same logic computing.

Thanks for your help
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66154
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not a JSTL problem.

You are trying to call an arbitrary function using the EL:

${pageScope.rightGroupList.contains(pageScope.oneGroup) }


This is not possible.

If you are using JSP 2.0 and JSTL 1.1, check out the fn category of EL functions defined by JSTL 1.1.
[ June 02, 2005: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66154
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P.S. Discover the 'disable smilies' checkbox when posting code.
 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.

I am sorry for "smilies". I am not intentioned to do it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!