• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with EL inside c:if test attribute="${x}"  RSS feed

 
Mike lothar
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
problem with EL inside c:if test="${x}" c ut value="hello"
/c:if.
it's showing exception due to expression not allowed according to tag library description inside test attribute JSTL tag.
note: i removed brackets be'coz problem with posting

Thank you
Mike
 
Nitish Bahadur
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure what the problem is:



The excerpt above works as is. (if x evaluates to true)
 
David Aslan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check your web.xml file, are you using servlet 2.4 or 2.3?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!