oh brother.. this means I would have to upgrade to sdk 1.5 from 1.4
(Tomcat 5.5 requires 1.5.. it might not be a bad idea, though, b/c I
also want to start playing with NetBeans.. but have been reluctant to
upgrade everything...:)
ok, many thanks to everyone for your help..
Rashmi Rubdi
maya wrote:
oh brother.. this means I would have to upgrade to sdk 1.5 from 1.4
(Tomcat 5.5 requires 1.5.. it might not be a bad idea, though, b/c I
also want to start playing with NetBeans.. but have been reluctant to
upgrade everything...:)
TC 5.5 should work just fine with JDK 1.4. Make
interesting.. I didn't know they had a 1.4-compatible package for 5.5..
again, many thanks to all..
Kris Schneider wrote:
maya wrote:
oh brother.. this means I would have to upgrade to sdk 1.5 from 1.4
(Tomcat 5.5 requires 1.5.. it might not be a bad idea, though, b/c I
also want to
Expression Language (EL) is part of the JSP 2.0 specification. If I'm not
wrong it has anything to do with servlets. If you use JSP 1.2 you have to
import the JSTL libraries. I think that Tomcat 5 implemnts JSP 2.0.
Sorry my english.
Andrés
On 9/12/06, Rahul Akolkar [EMAIL PROTECTED] wrote:
Behind the scenes JSPs are Servlets .
I had the same problem as maya is facing and after following the instructions
here: http://wiki.apache.org/jakarta-taglibs/FrequentlyAskedQuestions , and
making sure that there was no version mismatch between the .tld files and the
URIs and getting
thank you all very much for your responses.. will have to check
everything you guys say tonight at home (off the top of my head, I know
I have Tomcat 5.0.27 and, as far as I know, JSP 2.0; Servlet 2.4 specif
(this I know for sure, I looked it up when downloaded JSTL..)
one of the respondents
With JSP 2.0 you can use EL in all the page because it is part of the
specification. Whit JSP 1.2 you can only use it with JSTL tags and customs
tags (this last one I'm not very sure). EL is evaluated before the JSP
is converted to a servlet, so I don't think you can use it in a servlet.
Here's a
again, thank you all very much.. as mentioned, I have Tomcat 5.0.27,
which comes with the following (as specified in release-notes.txt that
comes with it):
* commons-collections*.jar (Commons Collections 2.1 or later)
* commons-dbcp.jar (Commons DBCP 1.1 or later)
* commons-el.jar (Commons
maya wrote:
again, thank you all very much.. as mentioned, I have Tomcat 5.0.27,
which comes with the following (as specified in release-notes.txt that
comes with it):
* commons-collections*.jar (Commons Collections 2.1 or later)
* commons-dbcp.jar (Commons DBCP 1.1 or later)
* commons-el.jar
Kris Schneider wrote:
maya wrote:
again, thank you all very much.. as mentioned, I have Tomcat 5.0.27,
which comes with the following (as specified in release-notes.txt that
comes with it):
* commons-collections*.jar (Commons Collections 2.1 or later)
* commons-dbcp.jar (Commons DBCP 1.1 or
Set up a fresh install of the latest Tomcat on the side with the correct
web.xml entry, and put a test jsp page in it with a simple EL expression and
see if it evaluates.
I have apache-tomcat-5.5.12
and a different set of jar files under apache-tomcat-5.5.12\common\lib :
i think it is the servlet specifications
if i am not wrong servlet 2.3 specifications does not evaluate the EL
expressions..
On 9/12/06, maya [EMAIL PROTECTED] wrote:
I can't get my EL expressions to evaluate to what they're supposed to...
they print verbatim, in both IE and FF, like for
On 9/11/06, maya [EMAIL PROTECTED] wrote:
I can't get my EL expressions to evaluate to what they're supposed to...
they print verbatim, in both IE and FF, like for example:
Server Name: ${pageContext.request.serverName}
Server Port: ${pageContext.request.serverPort}
Remote Address:
Hi,
Take a look on the web.xml file of your application. It should begin with
the following :
web-app version=2.4
xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
This is my web.xml
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
!-- makes MySQL driver accessible --
context-param
param-name
Message-
From: clunkyrobot [mailto:[EMAIL PROTECTED]
Sent: 06 September 2004 15:39
To: Tag Libraries Users List
Subject: Re: EL expression not evaluating
This is my web.xml
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems
PROTECTED]
Sent: 06 September 2004 15:39
To: Tag Libraries Users List
Subject: Re: EL expression not evaluating
This is my web.xml
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN http
PROTECTED]
Sent: Monday, September 06, 2004 17:39
Subject: Re: EL expression not evaluating
This is my web.xml
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN http://java.sun.com/dtd/web-app_2_3
Thank you so much
That did it calling sun URI rather then my local in combination with
the updated web.xml - thanks heaps, thank you, Question -- Intelij IDEA
marks version=2.4 in RED as not not valid ?? is this just Intelij
IDEA being silly?
-Kurt
I had the same prob. And 2 things I did that worked:
1. try using the 2.4 schema definition in web.xml
2. if the PermittedTablibs.tld is involved make sure your taglib-uri is
http://java.sun.com/jsp/jstl/core
Good luck
-Original Message-
From: Paul Wallace [mailto:[EMAIL PROTECTED]
Hi,
Tbanks for that. I was using the 2.4 schema:
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4
And tried
Hi,
It took me a while to get IJ/Jboss3.2.5(tomcat5)/JDK1.5 working but the
above finally rendered jstl 1.1 ${2+2} without using c:out
value=${2+2}/
That is what I am trying to do, embed some el in my JSTL (two
int attributes passed into my tag, and the tag then iterates for the
okok,
maybe just look into the code before posting:
the web-app-tag of the web.xml did not point to the 2.4-version, adding
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
Maps are treated differently than regular JavaBeans so that you can't access
bean properties. For example, every object has a bean property called class,
but you won't get any output if you try ${map.class}. It's even more fun to try
and get at a map's empty property ;-). If all you're concerned
Very interesting, so wrapping would work, but you can't
just expose a Bean property.
I've switched to c-rt for now,
Thanks!
On Fri, 2004-03-26 at 10:35, Kris Schneider wrote:
Maps are treated differently than regular JavaBeans so that you can't access
bean properties. For example, every
Right, because the wrapper would be a JavaBean, not a Map. The gory details
behind the . operator can be found in section A.3.4 Operators [] and . of
the JSTL 1.0 Spec.
Quoting Roy Benjamin [EMAIL PROTECTED]:
Very interesting, so wrapping would work, but you can't
just expose a Bean property.
Roy, if you are using JSP 2.0 (e.g. with Tomcat 5) and JSTL 1.1 you can
do the following:
[EMAIL PROTECTED] isELIgnored=false%
%@ taglib uri=http://java.sun.com/jsp/jstl/functions; prefix=fn %
Map size is ${fn:length(TableRows)}
Roy Benjamin wrote:
Very interesting, so wrapping would work, but
Personally, I'd keep JSTL/Standard in WEB-INF/lib and Xerces/Xalan in endorsed.
Unless I needed an app-specific version of the XML libs, in which case I'd need
them in WEB-INF/lib. I wouldn't recommend dumping everything in endorsed, or
some other directory that a shared classloader can access,
el has been incorporated into JSP 2.0 which is what Tomcat 5 implements.
So, you no longer need the c:out tag. Just do:
p1 + 2 + 3 = ${1+2+3}/p
Check out Tomcat's default pages to see more cool things you can do with
Tomcat 5 (JSP 2.0/Servlet2.4).
-Ben
From: David Wall [EMAIL PROTECTED]
David Wall wrote:
I've installed JDK 1.4.2_03, Tomcat 5.0.18 and Apache's JSTL 1.1 on RH Linux
9.
My XHTML JSP contains a simple construct: p1 + 2 + 3 = c:out
value=${1+2+3}//p
But the expression is not being evaluated, yet the c:out tag is being
processed fine. The output just looks like:
1 +
Since you're using a JSP 2.0 container, you should be able to just do:
p1 + 2 + 3 = ${1+2+3}/p
Make sure you're using a Servlet 2.4 deployment descriptor.
That didn't work for me. Perhaps it's your last comment. What does it mean
to have a 2.4 deployment descriptor for the JSP page? Maybe
I think you need to indicate in the web.xml that this is a jsp version 2
web
application, otherwise the container assumes the web application is
written for
an old jsp version where not the container but the taglib does the EL
evaluation
(you would need the 1.0.5 taglib version for this).
David Wall wrote:
I think you need to indicate in the web.xml that this is a jsp version 2
web
application, otherwise the container assumes the web application is
written for
an old jsp version where not the container but the taglib does the EL
evaluation
(you would need the 1.0.5 taglib
Thanks. The comments below did it for me. However, I still had some JAR
file location issues (tomcat's common/endorsed for the webapps WEB-INF/lib).
Do most people put the XERCES, XALAN, JSTL/STANDARD jars in the endorsed
location or do they just keep it with their webapps? Right now, I seem
Instead of:
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
...
/web-app
Use:
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
Try adding
?xml version=1.0 ?
web-app version=2.4
xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd
at the top of your web.xml. If you don't tell tomcat this is a 2.4 version
Thanks, Manos, it worked!
Marina
-Original Message-
From: Manos Papantoniou [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 1:27 PM
To: Tag Libraries Users List
Subject: Re: EL expressions are not evaluated
Try adding
?xml version=1.0 ?
web-app version=2.4
xmlns=http
John == John Thorhauer [EMAIL PROTECTED] writes:
John When using JSTL and the Expression Language with a bean, how does the
John api handle upper/lower case. For example, I have an class with a
John getPONumber() method. Now if i want call that in the Expression
John Language
The input taglib was developed before there was the Standard taglib and
the EL. Over time, those taglibs here which are not superceded by the
Standard taglib may have support for the EL added.
Glenn
Igor Kozlov wrote:
Hello!
I have a question.
Why expression language don't used in Input
From what little I know, JSP 2.0 introduces the concept of functions to
EL. I doubt these equate to ECMAScript, but is rather the ability to
define your own functions. I'v eno clue if there will be standard-ised
functions, though I'd expect JSTL might be the one to determine those.
[Sorry, I'm
JSP 2.0 provides tag-library developers with the ability to expose static
methods as functions in their TLDs. These functions will be accessible
to authors of any pages that import the containing tag library.
This facility also allows JSTL to expose a set of standard functions.
The precise set
On Fri, 1 Nov 2002, Travis McCauley wrote:
Hello,
I apologize if this has been covered recently. I'm trying to find out
how to use EL expressions in the 'with' attribute of a str:replace
tag. I'm using the 10/8/02 1.0 Release Version.
If you grab the latest nightly build [tonights, which
Hi Travis,
String Taglib [and all the Jakarta taglibs to my knowledge] are not ELized
yet.
JSP 2.0 will make all taglibs ELized, so the question on whether to add
hacked in support for ELs to the taglibs is a bit up in the air depending
on when JSP 2.0 is released, and how long this is going to
-Original Message-
From: Henri Yandell [mailto:bayard;generationjava.com]
Sent: Friday, November 01, 2002 11:21 AM
On Fri, 1 Nov 2002, Karr, David wrote:
If there's interest in EL-izing certain non-ELed tag libraries,
without changing the library (so the original library can
On Fri, 1 Nov 2002, Karr, David wrote:
-Original Message-
From: Henri Yandell [mailto:bayard;generationjava.com]
Sent: Friday, November 01, 2002 11:21 AM
On Fri, 1 Nov 2002, Karr, David wrote:
If there's interest in EL-izing certain non-ELed tag libraries,
without
My goal is to not change the existing library at all, either at the
source level or the deployment level. If you put the new classes in the
old jar, then people deploying the old taglib will get those extra
classes. Those shouldn't cause any conflicts, but I don't like to
introduce changes that
There is that, but in terms of project management for the Jakarta Taglibs,
it'll turn each ELized version into a new project, or a branch or
somewhat. Unless we declare org.apache.taglibs.name.el to be special
perhaps, and output two jars, one with and one without the el sub-package.
Will ask
I would recommend creating the EL enabled version as a 2.0 release.
Enabling EL in an older non EL taglib can allow you to restructure
how your tags work. Some tags or tag attributes may no longer be
necessary when the EL is available. Plus doesn't the EL require JSP 1.2?
And the current taglib
-Original Message-
From: Glenn Nielsen [mailto:glenn;mail.more.net]
Sent: Friday, November 01, 2002 1:02 PM
I would recommend creating the EL enabled version as a 2.0 release.
Enabling EL in an older non EL taglib can allow you to restructure
how your tags work. Some tags or tag
Hi Kenny. Responses below --
On Thu, 24 Oct 2002, MacLeod, Kenny wrote:
I've just started delving into JSTL, and I've run into some
inconsistent behaviour between some of the tags. This behaviour
concerns how the EL evaluates bean expressions.
For example, say I have a bean user, with a
EL is the Expression Language, which is new for JSTL. RT is the RunTime
expression mechanism from JSP 1.x (i.e. things like %= i++ %). JSTL
provides taglibs that work with both. In general, you'll probably want to
use the EL, since it's cleaner and more flexible, and only use the RT tags
if you
regards,
Yuri.
-Original Message-
From: Shawn Bayern [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 31, 2002 6:46 AM
To: Tag Libraries Users List
Subject: Re: EL
On Fri, 29 Mar 2002, Yuri Peter Kazakov wrote:
Hello,
how can I use JS functions in EL, for example
On Fri, 29 Mar 2002, Yuri Peter Kazakov wrote:
Hello,
how can I use JS functions in EL, for example:
c:if test=${ a.indexOf( b ) 0 }
doesn't work.
Any ideas?
Regards,
Yuri.
You can't. The JSTL expression language is really just for simple
references to request parameters,
53 matches
Mail list logo