Yes. After downloading those files, it seems to be working for me now.
Thanks!
-Original Message-
From: Rashmi Rubdi [mailto:[EMAIL PROTECTED]
Sent: Monday, April 30, 2007 6:06 PM
To: Tag Libraries Users List
Subject: Re: JSP 2.0 and JSTL EL
So it appears that the standard.jar you have
I have a Spring-based Application that was successfully running under Tomcat
5.5.
I've attempted to move it to JBoss 4.0.5, but it's having problems using the
JSP Expression Language (EL).
I made sure that I have the most recent JSTL 1.1 jstl.jar and standard.jar
files.
In the web.xml
Dick,
What Servlet and JSP specification version is JBoss 4.0.5 based on?
The compatibility chart for EL and web.xml I've known from experience is:
-
JSTL 1.2 works
List
Subject: Re: JSP 2.0 and JSTL EL
Dick,
What Servlet and JSP specification version is JBoss 4.0.5 based on?
The compatibility chart for EL and web.xml I've known from experience
The standard.jar file I have is for JSTL 1.1.2 , and it contains this class
org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager within it.
Dick Weisinger [EMAIL PROTECTED] wrote:
But it continues to have a problem. Spring says that it found the JSP 2.0
ExpressionEvaluator, but
So it appears that the standard.jar you have may be either corrupt or
doesn't have the class file.
Just to make it easier, the JSTL 1.1.2 zip was obtained from here:
http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi
Within the jstl.jar and standard.jar are within the zip,
wrote:
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
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 : commons-el.jar
jasper-compiler-jdt.jar
jasper-compiler.jar
jasper-runtime.jar
jsp-api.jar
jstl.jar
naming-factory-dbcp.jar
naming
:
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 : commons
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
the correct versions of the JAR files solved the problem.
-Rashmi
Andrés Florit [EMAIL PROTECTED] wrote:
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
seemed to be implying you can only use EL with
JSTL, I don't suppose I understood right, since I assume it can also be
used with custom tags and beans..
again, thank you very much..
-m
Rashmi Rubdi wrote:
Behind the scenes JSPs are Servlets .
I had the same problem as maya is facing
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
-common.jar (JNDI Context implementation)
* naming-factory.jar (JNDI object factories for J2EE ENC support)
* naming-resources.jar (JNDI DirContext implementations)
* servlet-api.jar (Servlet 2.4 API)
this means my EL expressions should evaluate, right?
thank you again..
Andrés Florit wrote
)
* naming-common.jar (JNDI Context implementation)
* naming-factory.jar (JNDI object factories for J2EE ENC support)
* naming-resources.jar (JNDI DirContext implementations)
* servlet-api.jar (Servlet 2.4 API)
this means my EL expressions should evaluate, right?
Don't worry about that stuff
2.0 Expression Language)
* naming-common.jar (JNDI Context implementation)
* naming-factory.jar (JNDI object factories for J2EE ENC support)
* naming-resources.jar (JNDI DirContext implementations)
* servlet-api.jar (Servlet 2.4 API)
this means my EL expressions should evaluate, right?
Don't
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 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: ${pageContext.request.remoteAddr}
Remote Host
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
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
%}
By Service
/c:when
c:when test=${param.display == %= MainPageAction.DISPLAY_BY_BU
%}
By BU
/c:when
/c:choose
That didn't even compile, so I learned my first lesson: I can not use
Java expression inside EL expressions. So, I tried this
c:set var
== %=
MainPageAction.DISPLAY_BY_SERVICE %}
By Service
/c:when
c:when test=${param.display == %= MainPageAction.DISPLAY_BY_BU
%}
By BU
/c:when
/c:choose
That didn't even compile, so I learned my first lesson: I can not use
Java expression inside EL expressions. So, I tried
manager, but we'll see :)
Thanks again :)
-Original Message-
From: Luca Passani [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 22, 2006 2:23 PM
To: Tag Libraries Users List
Subject: Re: Mixing EL and Java expressions
Since Martin Cooper is probably still sleeping in his time zone, here
Try
c:if test=${item.class.name == 'MySpecialClass')}
that should work, or?
Bjoern
-Ursprüngliche Nachricht-
Von: Luca Passani [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 17. März 2006 00:39
An: Tag Libraries Users List
Betreff: JSTL-EL question (instanceOf)
Hi
here is my
On 3/16/06, Luca Passani [EMAIL PROTECTED] wrote:
Martin Cooper wrote:
Not with just EL, but see:
http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/index.html#instanceOf
that seems powerful. Thanks. Is there an example of usage somewhere?
how do I combine
Greetings;
I have a tag that I created to allow integration with my back end. I am
using the Jakarta astandard taglibs extensively in the application but I
am a bit of a taglib newbie and I have a problem. Namely when I use EL
expressions in my tag attributes, they get passed verbatim
I concluded that your EL are not evaluated. I think you have to use
%@ page isELIgnored=false%
in your jsp.
I hope this will solve your problem. You can also refer to
http://forum.java.sun.com/thread.jspa?threadID=573209messageID=2848229
Let me know the result.
Best regards
Keshav Shetty
Robert
strange thing is that it evaluates the EL in the JSTL tags such as c:out
Keshav Shetty wrote:
I concluded that your EL are not evaluated. I think you have to use
%@ page isELIgnored=false%
in your jsp.
I hope this will solve your problem. You can also refer to
http://forum.java.sun.com/thread.jspa
That just made my EL expressions in my JSTL tags explode ... if I put in
that directive then I get the following result:
org.apache.jasper.JasperException: /JSPs/AdminSubscriptions.jsp(22,1) According
to TLD or attribute directive in tag file, attribute test does not accept any
expressions
/cs:subscriptionInfo
This appears to work. *shrug*
I keep thinking that there is something Im missing in my tag implementation.
-- Robert
Keshav Shetty wrote:
Although I couldn't find the actual reason to your problem, But I have
a workaround.
Instead of EL use direct JSP expression
).
Quoting Robert Simmons Jr. [EMAIL PROTECTED]:
Greetings;
I have a tag that I created to allow integration with my back end. I am
using the Jakarta astandard taglibs extensively in the application but I
am a bit of a taglib newbie and I have a problem. Namely when I use EL
expressions
I'll second to that. According to the spec, EL evaluation is turned on by
default only if the web deployment descriptor is version 2.4 or higher. In
this case, EL expressions are evaluated by the servlet container, _not_ the
JSP tag.
Presumably, you are using a JSTL version that delegates
-fileindex.html/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-fileindex.jws/welcome-file
/welcome-file-list
/web-app
Thanks
-- Robert
Olaf Bergner wrote:
I'll second to that. According to the spec, EL evaluation is turned on by
default only if the web deployment descriptor
;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
which will put the burden of evaluating EL expressions on the servlet
container. You might have to switch to the most recent version of the JSTL
afterwards, since it seems as if your current
welcome-fileindex.html/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-fileindex.jws/welcome-file
/welcome-file-list
/web-app
Thanks
-- Robert
Olaf Bergner wrote:
I'll second to that. According to the spec, EL evaluation is turned on by
default only
://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
which will put the burden of evaluating EL expressions on the servlet
container. You might have to switch to the most recent version of the JSTL
afterwards, since it seems as if your current version handles EL evaluation
on itself.
(2) Keep version 2.3
;
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;
which will put the burden of evaluating EL expressions on the servlet
container. You might have to switch to the most recent version
Robert Simmons Jr. wrote:
I changed the web.xml as you suggested but now the JSTL tags blow so I
obviously need a version of the JSTL that works with 2.4. Which Jakarta
taglibs version works with that ?
http://jakarta.apache.org/taglibs/index.html
On the left menu you'll see
JCP Standardized
Standard v. 1.0.6, for instance) offer two alternative TLDs, one for
operating in an EL enabled environment, one for operating in an environment
where EL expression evaluation is handled by the tags themselves.
What I would do is erase jstl.jar, standard.jar and corresponding TLDs from
your WEB-INF
Hi Néstor,
Thanks for your efforts. That would be great.
Regards,
Olaf
-Ursprüngliche Nachricht-
Von: Néstor Boscán [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 30. Dezember 2004 01:05
An: [EMAIL PROTECTED]; taglibs-user@jakarta.apache.org
Betreff: RV: [datagrid] Cannot use EL
'organizationSearchForm', i.e. the
following struts tag
logic:iterate name=organizationSearchForm
property=filteredOrganizations .../logic:iterate
works.
My first problem was JBoss complaining that according to the TLD the
attribute 'items' does not accept an EL expression, so that compilation
failed. I modified
-Mensaje original-
De: Néstor Boscán [mailto:[EMAIL PROTECTED]
Enviado el: Miércoles, 29 de Diciembre de 2004 07:59 p.m.
Para: 'Tag Libraries Users List'; '[EMAIL PROTECTED]'
Asunto: RE: [datagrid] Cannot use EL in attribute items
Hi Olaf
You're doing everything right. The problem
Hi - I am building a blog in the JSP and JSTL and EL and Tomcat and
MySQL.
So far I have installed Tomcat 5, with MySQL 4.x.x, and the Jakarta
Core Tags version 2, all seems to be functioning. I am using Intellij
IDEA 4.5 as my IDE. Now all seems to be running fine, no errors,
Intellij IDEA
://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
Hope it helps.
- Original Message -
From: clunkyrobot [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 06, 2004 16:32
Subject: EL expression not evaluating
Hi - I am building a blog in the JSP and JSTL and EL and Tomcat and
MySQL
;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
Hope it helps.
- Original Message -
From: clunkyrobot [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 06, 2004 16:32
Subject: EL expression not evaluating
Hi - I am
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
Hello,
I'm using the Struts-EL and JSTL custom tag implementations in my Web app.
I want to use the c:out tag to output dynamic data. The tricky part is I
want to dynamically build the EL expression at runtime by building up a
String that should be evaluated. I don't want to output the String
();
to this:
formBean[pageContext.layoutObject.property]
(If I understood you have a layoutObject with a property saying which
property read from formBean).
At 08:37 02/09/2004 -0500, you wrote:
Hello,
I'm using the Struts-EL and JSTL custom tag implementations in my Web app.
I want to use the c:out
Expressions for Struts-EL and JSTL
So, you could change this:
String expr = formBean. +
((app.LayoutObject)pageContext.getAttribute(layoutObject)).getProperty();
to this:
formBean[pageContext.layoutObject.property]
(If I understood you have a layoutObject with a property saying which
property
: Helios Alonso [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 02, 2004 9:48 AM
To: Tag Libraries Users List
Subject: Re: Dynamic Expressions for Struts-EL and JSTL
So, you could change this:
String expr = formBean. +
((app.LayoutObject)pageContext.getAttribute(layoutObject)).getProperty
.
-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 02, 2004 11:09 AM
To: Tag Libraries Users List
Subject: RE: Dynamic Expressions for Struts-EL and JSTL
I wonder if you need something like this:
${formBean[layoutObject.property][layoutObject.property2]}
Where
Hi,
I am trying to introduce JSP 2 with Tomcat 5 (full source
below), and thus experimenting with the JSTL expression language in JSP
tag files (.tag). I am bemused as to why I cannot embed the expression
language within a JSTL tag thus:
c:forEach begin=${a} end=${b}
]
Sent: Wednesday, July 28, 2004 11:17 PM
To: [EMAIL PROTECTED]
Subject: el in JSTL / JSP 2.0
Hi,
I am trying to introduce JSP 2 with Tomcat 5 (full source
below), and thus experimenting with the JSTL expression language in JSP
tag files (.tag). I am bemused as to why I cannot embed
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
Hi,
I do hope that I am here in the right group.
I have a unpleasent error, for which I havent found a solution on
several days research.
Here is my Scenario:
I do have a bug i.e. an Exception which occurs ocassionally but not
always.
Using Tomcat 5.0.24 and Servlet 2.4 I try to display a
Something doesn't jibe here. You are saying that the evaluation of
${User.userName} is failing, but the stack trace you provide shows
ArraySuffix in the call stack. I can't see how that class could be
involved in evaluating the expression you give. Are you sure that is the
expression that's
Hi Martin,
hmm, It was my guess from the last line of the Stacktrace (as I pasted
it), that the root is in the CompiledJspPage:
at
org.apache.jsp.WEB_002dINF.jsp.app.security.manage.user_jsp._jspx_meth_c
_out_0(user_jsp.java:338)
Here is the Line 338 of user_jsp.java. As I understand
using java web services (jwsdp-1.3) on linux. When I use the sql
taglib
to get data from database and then try to use el string functions on the
outcome the error message above is given. This is the line of code I'm
using which by the way works perfectly with static string
${fn:substring
database and then try to use el string functions on the
outcome the error message above is given. This is the line of code I'm
using which by the way works perfectly with static string
${fn:substring(nullString,1, fn:length(nullString)) }
Appreciate any help
Regards,
Thorgils
to use el string functions on the
outcome the error message above is given. This is the line of code I'm
using which by the way works perfectly with static string
${fn:substring(nullString,1, fn:length(nullString)) }
Appreciate any help
Regards,
Thorgils Volundarson
Icelandic Cancer Registry
not change the
output. Is there something else I have to do for evaluating
EL-Expressions?!
Cheers
stf
--
Stefan Frank
iBioS - Intelligent BioInformatics Systems
http://www.dkfz-heidelberg.de/ibios
DKFZ - German Cancer Research Center
Im Neuenheimer Feld 580
69120 Heidelberg
Tel.: +49 (0) 6221 42
:
id: ${row.id}
user:${row.user_name}
even outing with c:out value=${row.user_name}/ does not change the
output. Is there something else I have to do for evaluating
EL-Expressions?!
Cheers
stf
--
Stefan Frank
iBioS - Intelligent BioInformatics Systems
http://www.dkfz-heidelberg.de/ibios
DKFZ
Howdy,
I am trying to use the EL function c:out value=${fn:replace(col,
'_','')/
I put jstl.jar and standard.jar in WEB-INF/lib,
I put
%@ taglib prefix=sql uri=http://java.sun.com/jstl/sql; %
%@ taglib prefix=c uri=http://java.sun.com/jstl/core; %
at the top of my page
and all core and sql
You have to be using JSTL 1.1.
-Original Message-
From: John MccLain [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 3:02 PM
To: taglibs user list
Subject: Can't ue EL Funcations
Howdy,
I am trying to use the EL function c:out value=${fn:replace(col,
'_','')/ I put
where do I get it and how is it implemented differently??
-Original Message-
From: Johnson, Chris [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 1:03 PM
To: Tag Libraries Users List; [EMAIL PROTECTED]
Subject: RE: Can't ue EL Funcations
You have to be using JSTL 1.1
http://mirrors.xtria.com/apache/jakarta/taglibs/standard/
There should be a README that talks about installation.
-Original Message-
From: John MccLain [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 3:10 PM
To: Tag Libraries Users List
Subject: RE: Can't ue EL Funcations
a series of SQL queries, but it seemed to me this
was the better solution.. only the EL expression is null.
I'm sure I'm doing something wrong
Thanks
Roy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
Results:nbsp;c:out value=${TableRows.size}/nbsp;found.
/TD
I could just count things as they are added to the map
over a series of SQL queries, but it seemed to me this
was the better solution.. only the EL expression is null.
I'm sure I'm doing something wrong
Thanks
Roy
--
Kris
as they are added to the map
over a series of SQL queries, but it seemed to me this
was the better solution.. only the EL expression is null.
I'm sure I'm doing something wrong
Thanks
Roy
-
To unsubscribe, e
a series of SQL queries, but it seemed to me this
was the better solution.. only the EL expression is null.
I'm sure I'm doing something wrong
Thanks
Roy
--
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech http://www.dotech.com
the EL expression is null.
I'm sure I'm doing something wrong
Thanks
Roy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On 03/11/2004 03:23 AM Daniel Lipofsky wrote:
What is the definitive reference for EL syntax?
I am having a hard time finding a good online reference.
Get the pdf of the JSTL spec from Sun.
Adam
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
I am trying to use a JSTL EL function (fn:toUpperCase), although this
problem occurs with any function.
I think it has something to do with my setup.
After looking around, I realised I needed to use a Servlet 2.4 web.xml .
No I have done that I get another error.
If I use code like
included a c-rt.tld and a c.tld, if they are both still present, you need
the c-rt.tld for JSP 2.0/Servlet 2.4 handling of the EL-functions
Grtz,
Martin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
The EL doesn't support the BeanUtils concept of a mapped property. You'd have to
expose a simple property of type Map to work with JSTL:
public Map getSearchMap() { ... }
c:out value=${form.ui.searchMap[key]}/
Quoting Daniel Lipofsky [EMAIL PROTECTED]:
What is the definitive reference for EL
What is the definitive reference for EL syntax?
I am having a hard time finding a good online reference.
I might as well ask my question too.
How do you get something from a mapped property?
That is, what is the EL syntax for
ListForm.getUi().getSearch(String key)
In struts (which uses
[] a = {0,1,2,3,4,5,6,7,8,9};
int[] b = {9,8,7,6,5,4,3,2,1,0};
for(int i = 0; i a.length; i++){
System.out.println(b[i]-a[i]);
}
How could I achieve that in JSTL using el?
c:forEach var=total items=${dailyTotals}
td
c:out value=${total-(value
different collections using
for:each and el
In a nutshell, I want to iterate over a collection and subtract a value
from a different collection with the same position as the current
collection. The problem is, I don't know how to reference the current
iterator.
For example, how would I do something
.
Even though everything appeared okay with my initial EL, I did note the
following exception in catalina.log:
java.lang.NullPointerException
at
org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:557)
at
org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java
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 + 2 + 3 =
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
but the taglib does the EL evaluation
(you would need the 1.0.5 taglib version for this).
Regards,
wolfgang
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
with my initial EL, I did note the
following exception in catalina.log:
java.lang.NullPointerException
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:557)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:487
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;
For paging, take a look at the displaytag on sf.net.
.V
Jason Lea wrote:
I had a similar problem (paging and JSTL) and managed to get it
working. The c:set var=lastPageNo value=1/ code is setting the
lastPageNo to a string and then later on it is doing a string
concatenation on it so you get
Thanks for the tip :)
You are right. Maybe I should move these out of the JSP.
Bye !
François
On Sun, 28 Dec 2003 22:42:23 -0500, Kris Schneider [EMAIL PROTECTED]
said:
It's not a direct answer to your question, but it seems like the work
you're doing is more suited to a servlet or
I had a similar problem (paging and JSTL) and managed to get it
working. The c:set var=lastPageNo value=1/ code is setting the
lastPageNo to a string and then later on it is doing a string
concatenation on it so you get 13 instead of 4
JSTL will coerce it into an integer if you assign it this
Hi !
I have a slight problem. I am building a paged results browser, and I
have a problem with my next action.
The root of the problem is because JSTL thinks that some values are
strings, and not numbers.
The code I am running is:
fmt:formatNumber var=lastPageNo value=${numberOfContacts /
Hi,
I have a page where a value is calculated at top of the page based on a
request parameter. It is an integer. Using normal JSP I could get this
varaible at another part in page. But if using JSTL do I have to set the
value first in pageContext then get the value using EL
Hi,
How to access the method Result.getRowCount() in JSTL standard 1.0 EL.
rgds
Antony Paul.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
:
Subject: using scripting variable in
JSTL standard 1.0 EL
12/15/2003 09:41
:
Subject: Result.getRowCount() in EL.
12/15/2003 09:42
AM
You can access request parameters directly with the EL. For example, if
you have a request parameter named foo, you can do this:
c:out value=${param.foo}/
The 'param' part is an implicit object that lets you access the request
parameters.
--
Martin Cooper
On Mon, 15 Dec 2003, Antony Paul
1 - 100 of 273 matches
Mail list logo