Two Laptop Bag*
The moose likes JSP and the fly likes c:if won't accept any attributes! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "c:if won Watch "c:if won New topic
Author

c:if won't accept any attributes!

Ivan Jouikov
Ranch Hand

Joined: Jul 22, 2003
Posts: 269
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

Joined: Oct 12, 2000
Posts: 5093
try "${not empty param.name}" which is the correct syntax.


42
Pedro Penna
Ranch Hand

Joined: Jun 05, 2004
Posts: 46
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

Joined: Jan 10, 2002
Posts: 61764
    
  67

Try "${not empty param.name}" which is the correct syntax.


Either operator, not or ! is acceptable.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ivan Jouikov
Ranch Hand

Joined: Jul 22, 2003
Posts: 269
�� �����?

Turned out I had to @include core_rt lib, not just core
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61764
    
  67

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

Joined: Feb 09, 2004
Posts: 4
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
 
subject: c:if won't accept any attributes!