Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

c:if won't accept any attributes!

 
Ivan Jouikov
Ranch Hand
Posts: 269
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I tried the following:



I get this error:




... I am running JSTL 1.1 and Tomcat 5.0.25

Why am I the one to have this problem? WHYYY!!??!?

Can anyone help?
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try "${not empty param.name}" which is the correct syntax.
 
Pedro Penna
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I ran into the same problem last month.

After downloading the libraries and TLDs again, I noticed the lib was up-to-date, but the TLD was not. Or was it the other way? Anyway... Problem solved.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64194
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try "${not empty param.name}" which is the correct syntax.


Either operator, not or ! is acceptable.
 
Ivan Jouikov
Ranch Hand
Posts: 269
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
�� �����?

Turned out I had to @include core_rt lib, not just core
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64194
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm, I didn't think to ask about that since you stated that you were using JSTL 1.1. The 'rt' stuff was a 1.0 artifact.
 
te keylo
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what was your fix? I think i am having a similar problem. I wrote a couple .jsp files and tested them using Tomcat where they worked fine, but when I tested them on a server running J2EE SDK 1.4 none of the <c:if .....> statements worked
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic