Re: JSTL tag libs

2005-06-22 Thread Martin Gainty

The tutorial link provided is actually quite helpful

If you copy the JSTL JAR files from the lib directory where you installed 
the Standard Taglib to your webapp's WEB-INF\lib


then the first line your jsp contains the taglib declaration
%@ taglib prefix=c uri=http://java.sun.com/jstl/core; %

of course any taglib utilising runtime expression would of course have _rt 
appended as in

%@ taglib prefix=c_rt uri=http://java.sun.com/jstl/core_rt %

Viel Gluck,
Martin-


- Original Message - 
From: Martin Kindler [EMAIL PROTECTED]
To: 'Struts Users Mailing List' user@struts.apache.org; 'Martin 
Gainty' [EMAIL PROTECTED]

Sent: Wednesday, June 22, 2005 5:03 AM
Subject: AW: JSTL tag libs


Like Alan I was wondering about the difference and now see a bit clearer.

BUT:
Now I am a bit confused.

I used to use the rt-TLDs in my project (it simply works with EL
expressions, possibly because the container, Tomcat 5.x, handles it ?).
After the information supplied here I should use the c (without -rt) ones.
When I try to do this I get a Jasper-Exception:
According to TLD or attribute directive in tag file, attribute test does
not accept any expressions

The first usage of an c-tag in my jsp using EL is:
c:when test=${apForm.oid != 0}

The TLD is specified in my JSP-file as:
%@ taglib uri=/WEB-INF/tld/c.tld prefix=c %

(I put all my TLDs under the WEB-INF/tld directory)

Any hints?

Martin

---
cityExperience.net
Dipl. Inf. Martin Kindler
Kaulbachstr. 20a
D-12247 Berlin
Deutschland

eMail [EMAIL PROTECTED]



-Ursprüngliche Nachricht-
Von: Martin Gainty [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 22. Juni 2005 04:24
An: Struts Users Mailing List
Betreff: Re: JSTL tag libs


Erik et al
Yes
c tag (prefix=c) (uri=http://java.sun.com/jstl/core) uses
EL expression as
in
c:set var=browser value=${header['User-Agent']}/

check out
http://java.sun.com/developer/technicalArticles/javaserverpage
s/faster/

Martin-
- Original Message - 
From: [EMAIL PROTECTED]

To: [EMAIL PROTECTED]; Struts Users Mailing List
user@struts.apache.org
Sent: Tuesday, June 21, 2005 7:39 PM
Subject: Re: JSTL tag libs


 Thanks for the replies.

 -Original Message-
 From: [EMAIL PROTECTED]
 Sent: Jun 20, 2005 5:16 PM
 To: Struts Users Mailing List user@struts.apache.org,
 [EMAIL PROTECTED]
 Subject: Re: JSTL tag libs

 I'm not positive on this, but I think that the c-rt tags would take
 expressions in scriptlet format (%=) whereas the c tags
take expressions
 in the expression language format (${).

 Erik


 -Original Message-
 From: [EMAIL PROTECTED]
 Sent: Jun 20, 2005 4:34 PM
 To: user@struts.apache.org
 Subject: JSTL tag libs

 Hi,
 In the Struts 1.2.x distribution, what is the difference between the
 following tag libs:
 contrib/struts-el/lib/c-rt.tld
 contrib/struts-el/lib/c.tld

 Thanks





-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]







-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSTL tag libs

2005-06-21 Thread alan . sinclair
Thanks for the replies.

-Original Message-
From: [EMAIL PROTECTED]
Sent: Jun 20, 2005 5:16 PM
To: Struts Users Mailing List user@struts.apache.org, 
[EMAIL PROTECTED]
Subject: Re: JSTL tag libs

I'm not positive on this, but I think that the c-rt tags would take expressions 
in scriptlet format (%=) whereas the c tags take expressions in the expression 
language format (${).

Erik


-Original Message-
From: [EMAIL PROTECTED]
Sent: Jun 20, 2005 4:34 PM
To: user@struts.apache.org
Subject: JSTL tag libs

Hi,
In the Struts 1.2.x distribution, what is the difference between the following 
tag libs:
contrib/struts-el/lib/c-rt.tld
contrib/struts-el/lib/c.tld

Thanks




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSTL tag libs

2005-06-21 Thread Martin Gainty

Erik et al
Yes
c tag (prefix=c) (uri=http://java.sun.com/jstl/core) uses EL expression as 
in

c:set var=browser value=${header['User-Agent']}/

check out
http://java.sun.com/developer/technicalArticles/javaserverpages/faster/

Martin-
- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Struts Users Mailing List 
user@struts.apache.org

Sent: Tuesday, June 21, 2005 7:39 PM
Subject: Re: JSTL tag libs



Thanks for the replies.

-Original Message-
From: [EMAIL PROTECTED]
Sent: Jun 20, 2005 5:16 PM
To: Struts Users Mailing List user@struts.apache.org,
[EMAIL PROTECTED]
Subject: Re: JSTL tag libs

I'm not positive on this, but I think that the c-rt tags would take 
expressions in scriptlet format (%=) whereas the c tags take expressions 
in the expression language format (${).


Erik


-Original Message-
From: [EMAIL PROTECTED]
Sent: Jun 20, 2005 4:34 PM
To: user@struts.apache.org
Subject: JSTL tag libs

Hi,
In the Struts 1.2.x distribution, what is the difference between the 
following tag libs:

contrib/struts-el/lib/c-rt.tld
contrib/struts-el/lib/c.tld

Thanks




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSTL tag libs

2005-06-20 Thread erikweber
I'm not positive on this, but I think that the c-rt tags would take expressions 
in scriptlet format (%=) whereas the c tags take expressions in the expression 
language format (${).

Erik


-Original Message-
From: [EMAIL PROTECTED]
Sent: Jun 20, 2005 4:34 PM
To: user@struts.apache.org
Subject: JSTL tag libs

Hi,
In the Struts 1.2.x distribution, what is the difference between the following 
tag libs:
contrib/struts-el/lib/c-rt.tld
contrib/struts-el/lib/c.tld

Thanks




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSTL tag libs

2005-06-20 Thread Niall Pemberton
Erik is correct:

http://java.sun.com/j2ee/1.3/docs/tutorial/doc/JSTL4.html#wp67593

Niall

- Original Message - 
From: [EMAIL PROTECTED]
Sent: Monday, June 20, 2005 10:16 PM


 I'm not positive on this, but I think that the c-rt tags would take
expressions in scriptlet format (%=) whereas the c tags take expressions in
the expression language format (${).

 -Original Message-
 From: [EMAIL PROTECTED]
 Sent: Jun 20, 2005 4:34 PM

 Hi,
 In the Struts 1.2.x distribution, what is the difference between the
following tag libs:
 contrib/struts-el/lib/c-rt.tld
 contrib/struts-el/lib/c.tld



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]