• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in EL

 
subodh gupta
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am trying to compare the string literal in jsp through EL and jslt core library now:


above expression is evaluating as adjust
.

But


is evaluating as false can you help me.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are missing curly brackets :
 
subodh gupta
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think <c:if> tag doesn't accept the expression with {} but you have to put like this(like given in the 1st post).

If i put a {} in the test attribute, jsp is throwing exception: expression is not allowed in the test attribute.
[ September 17, 2007: Message edited by: subodh gupta ]
 
Amol Nayak
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what uri are you using in the taglib directive of the page?
Can you post it?

Also check the tld file, i suspect the rtexprvalue tag is not
present for the attribute or set to false.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65119
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by subodh gupta:
jsp is throwing exception: expression is not allowed in the test attribute.
This means that you are using the wrong version of the JSTL for the version of JSP that you are using.
 
subodh gupta
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The exception is:


Url:


The version i am using is jstl-1.0.2.jar.
[ September 17, 2007: Message edited by: subodh gupta ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65119
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you read my reply?
 
subodh gupta
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does this mean?

are the jstl and jsp version not compatible?

i am using jstl-1.0.2.jar and <!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

this is my web-inf.xml version i.e. 2.3.

So do you think i should try with 1.1 jslt?
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can find the details inside the FAQs Setup Jstl For Jsp2
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic