I agree about the plausability, but JSTL does freeze the charset (which is a
little less likely to change). JSTL could also save the Accept-Language header
that it used to come up with the browser locale, and if it changes reset the
locale stored in the session.
I imagine recalculating the
This shall help you out.
javax.servlet.jsp.jstl.core.Config
The following two methods:
set(session, Config.FMT_LOCALE, ...);
get(session, Config.FMT_LOCALE)
--
- Original Message -
DATE:
From: [EMAIL PROTECTED]
To: Tag Libraries Users List [EMAIL PROTECTED]
Cc:
I agree
In the the resin.conf file, you need to specify:
caucho.com
http-server
jsp fast-jstl='false'/
/http-server
/caucho.com
If you are just using the core and fmt tag libraries, I would just
recommend using Resin's internal JSTL implementation. I've been using it
on production applications
PM 04:14:42 EST
To: Tag Libraries Users List [EMAIL PROTECTED]
Subject: Re: JSTL 1.0 and resin
In the the resin.conf file, you need to specify:
caucho.com
http-server
jsp fast-jstl='false'/
/http-server
/caucho.com
If you are just using the core and fmt tag libraries, I would just
Hans,
I spent some time to integrate TC5 with Apache and
finally run TC5 with useBodyEncodingForURI=true and
URIEncoding=UTF-8 parameters in server.xml. FORM
ACTION=anAction METHOD=GET works now, so that bug
is fixed in new release. TC5 currently has other bags
(I posted just 2 in this list), so I
(I posted just 2 in this list)
Opps, I posted these bugs in Tomcat list, not here,
but I think you might be interested, at least one can
be relative to JSTL setLocale, see below
I tryed today current release TC5 and seen errors:
1. I have the following lines which run under 4.1.29
but not in
On Fri, 6 Feb 2004, Evgeny Gesin wrote:
Hi,
I will provide a little more information, may be that
will be important.
1. I use an in-house developed Tiles, similar to
Struts, so each page is make up of of dinamically
included pages, for example, header, content and
footer JSPs.
2. I use
Can you post a little more detail on what you mean by adding JSTL? Which tags
are you using?
Quoting Evgeny Gesin [EMAIL PROTECTED]:
After adding JSTL to UTF-8 encoded JSP pages all form
data sent via GET are gibberish. The POST does work.
What can be the problem?
Evgeny /Javadesk/
--
Hi,
I will provide a little more information, may be that
will be important.
1. I use an in-house developed Tiles, similar to
Struts, so each page is make up of of dinamically
included pages, for example, header, content and
footer JSPs.
2. I use only i18n from JSTL package, so web.xml have
a
Evgeny Gesin wrote:
Hi,
I will provide a little more information, may be that
will be important.
1. I use an in-house developed Tiles, similar to
Struts, so each page is make up of of dinamically
included pages, for example, header, content and
footer JSPs.
2. I use only i18n from JSTL package, so
If you don't need the XML-related tags, just grab jstl.jar and standard.jar.
Otherwise, add jaxen-full.jar and saxpath.jar. The other JAR files (or their
equivalents) are usually provided by your container and/or JVM.
Quoting Chris Daly [EMAIL PROTECTED]:
hi
i've just downlaoded the above
[EMAIL PROTECTED] wrote:
Actually, that is not true. According to the Resin 2.1.12 docs:
---
servlet-classloader-hack
Enables the Servlet specification classloader hack. The Servlet 2.3
classloader order violates the JDK classloader specification. By default,
therefore, Resin follows the JDK
[EMAIL PROTECTED] wrote:
Actually, that is not true. According to the Resin 2.1.12 docs:
---
servlet-classloader-hack
Enables the Servlet specification classloader hack. The Servlet 2.3
classloader order violates the JDK classloader specification. By default,
therefore, Resin follows the JDK
I don't use Resin, but I know it has an integrated JSTL implementation. Have you
disabled Resin's impl?
Quoting Dennis Warren [EMAIL PROTECTED]:
Has anyone been able to get Resin 2.1.11 to work with JDK1.4.2 using the
apache JSTL libraries 1.04? I'm having some class problems with the
yes, there's a tag to disable that in Resin 2.1 but it doesn't seem to
resolve my problem.
caucho.com
http-server
jsp fast-jstl='false'/
...
/http-server
/caucho.com
I keep getting the error message below. DocumentRange.class is
supposed to be xalan.jar which is contained in WEB-INF/lib of
Dennis Warren wrote:
yes, there's a tag to disable that in Resin 2.1 but it doesn't seem to
resolve my problem.
caucho.com
http-server
jsp fast-jstl='false'/
...
/http-server
/caucho.com
I keep getting the error message below. DocumentRange.class is supposed
to be xalan.jar which is
Does this still apply:
http-server
servlet-classloader-hacktrue/servlet-classloader-hack
/http-server
Quoting Hans Bergsten [EMAIL PROTECTED]:
Dennis Warren wrote:
yes, there's a tag to disable that in Resin 2.1 but it doesn't seem to
resolve my problem.
caucho.com
http-server
This was going to be my last resort. I think I might have to give it a
try because I'm having absolutely no luck. I've tried to put classes on
the classpath, put classes in the jdk extension directory, and defining
them in resin.conf. I'll have to see how this turns out.
Thanks for all the
Resin won't load from the webapp/lib directory unless you turn on the
classloader hack. I've been using the following method of defining jars
specific to a webapp with a lot of success (in web.xml):
classpath id=/path/to/jarfile.jar /
Also if you to add a whole directory:
classpath
Yes it is part of the servlet spec, and it's a violation of the Java
language spec. Resin has the classloader hack set to true by default,
so you get the same behavior as you would expect in Tomcat or other
servlet containers.
--
Serge Knystautas
President
Lokitech software . strategy .
dependancies on
third party libraries ? and they don't specify these dependecies in their
site.
Tridev
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 6:32 PM
To: Tag Libraries Users List
Subject: Re: jstl xpath
Pretty the Jakarta Standard
come Apache has so much dependancies on
third party libraries ? and they don't specify these dependecies in their
site.
Tridev
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 6:32 PM
To: Tag Libraries Users List
Subject: Re: jstl
PM
To: Tag Libraries Users List
Subject: RE: jstl xpath
I'm not sure what you mean by, ...they don't specify these dependecies in
their
site. All the required JAR files are included in the distribution of the
tag
library. There's also this document:
http://jakarta.apache.org/taglibs/doc/standard
I believe JSTL uses the JDK standard, which is Xerces/Xalan, which is an
Apache Jakarta standard project. Checkout xml.apache.org for more info.
Brice
Tridev Kodamasingh wrote:
Hi All,
Can anybody tell me, for xml parsing/navigating, what XPath engine sun/JSTL
uses ??
Where I can get the
Pretty the Jakarta Standard taglib, a JSTL implementation, uses Jaxen for its
XPath engine. All the JAR files you need are distributed with the taglib:
jaxen-full.jar
jstl.jar
saxpath.jar
standard.jar
Not sure where dom4j came from. Of course, there's nothing that really prevents
another JSTL
Quoting Kris Schneider [EMAIL PROTECTED]:
Pretty the Jakarta Standard taglib, a JSTL implementation, uses Jaxen for
^sure
its
XPath engine. All the JAR files you need are distributed with the taglib:
jaxen-full.jar
jstl.jar
saxpath.jar
standard.jar
Not sure where dom4j came
Maybe the El evaluation is disabled by Tomcat, this happens with old
versions of the web.xml file. Make sure that your web.xml file is
according to the servlet 2.4 specification.
Regards,
_
Manolo Ramirez T.
Ernst Plüss wrote:
Hi all
I'm using Apache Tomcat/5.0.16.
As a JSTL
Never tried that, but if I'm not mistaken XSL has a mechanism built-in
to retrieve parameters passed from anywhere when the stylesheet is
loaded. Check out the http://www.w3schools.com xsl tutorial and
reference for more info.
Martin
wrote:
when i write the code below:
x:transform
when i write the code below:
x:transform xml=${xml} xslt=${xslt}
x:param name=gg value=0/
/x:transform
my question is what the param useage here,how can i
get the param in xsl file?
A XSLT which accepts a param named gg and displays the param's value
would look something like this:
--- [EMAIL PROTECTED]
when i write the code below:
x:transform xml=${xml} xslt=${xslt}
x:param name=gg value=0/
/x:transform
my question is what the param useage here,how can i
get the param in xsl file?
A XSLT which accepts a param named gg and displays
the param's value
would
Hey Vinela,
Please post the relevant part of your JSP and XML. I'm not 100% sure,
but it looks like there's no XML parser in your web application. Or that
it has some errors. Tomcat 4.1 definitely bundles it along, but it might
be that that wasn't the case yet with 4.0. Either try 4.1 or put
Hi,
I am using JBuilder9 and I just included the JSTL tag
library.This is the JSP I am using
%@ taglib prefix=x
uri=http://java.sun.com/jstl/xml; %
html
head
titleJSTL: XML Support -- Parse / Out/title
/head
body bgcolor=#FF
h3Parse / Out/h3
x:parse var=a
a
b
c
foo
/c
Hey Vinela,
Little rusty on my XPath, so except for the $a//c I'm certain your JSP
is correct. Try downloading and installing Tomcat standalone and
deploying your web application to that. This might be a JBuilder issue.
Martin
Vinela pothineni wrote:
Hi,
I am using JBuilder9 and I just
From the original post, this:
cause java.lang.NoClassDefFoundError: org/jaxen/NamespaceContext
seems to indicate you haven't got all the classes you need. Make sure you've got
the following in WEB-INF/lib (from the Standard taglib dist):
jaxen-full.jar
jstl.jar
saxpath.jar
standard.jar
Quoting
You can use the Realm of the Tomcat server to authenticate users and
match them to roles (basically Groups stored in the ldap server). If you
do this then you don't really need to use taglibs to manage the login.
You just have to configure your web.xml with a login-config and the
server.xml
, December 03, 2003 5:22 PM
To: Tag Libraries Users List
Subject: Re: JSTL and LDAP
You can use the Realm of the Tomcat server to authenticate users and
match them to roles (basically Groups stored in the ldap server). If you
do this then you don't really need to use taglibs to manage the login.
You
Quoting Harod Ruthgar [EMAIL PROTECTED]:
Hello,
I have several questions regarding JSTL:
1) When using fmt tag, how to use multiple bundles on
the same page?
I tried:
fmt:setBundle basename=bundle1 var=myBundle1/
fmt:setBundle basename=bundle2 var=myBundle2/
fmt:message key=text1
Okay, so after taking a second look at the code snippet for #3, forget about it.
Not only won't it compile as given, but it'll probably receive a String instead
of a LocalizationContext from Config.find. Sorry 'bout that...
Quoting Kris Schneider [EMAIL PROTECTED]:
Quoting Harod Ruthgar [EMAIL
--- Kris Schneider [EMAIL PROTECTED] wrote:
What happens with:
fmt:bundle basename=bundle1
fmt:message key=text1/
/fmt:bundle
fmt:bundle basename=bundle2
fmt:message key=text2/
/fmt:bundle
That's my workaround as well, but it's just annoying
having to wrap fmt:bundle for each
Harod Ruthgar wrote:
--- Kris Schneider [EMAIL PROTECTED] wrote:
What happens with:
fmt:bundle basename=bundle1
fmt:message key=text1/
/fmt:bundle
fmt:bundle basename=bundle2
fmt:message key=text2/
/fmt:bundle
That's my workaround as well, but it's just annoying
having to wrap fmt:bundle for
I've only seen that when struts can't find the resource file or the key...
Savan Thongvanh
Berkley Technology Services
515.278.7725
Nothing to do with Struts. From the JSTL spec for fmt:message:
If the i18n localization context that this action determines does not have any
resource bundle, an error message of the form ???key??? is produced.
Try this:
context-param
: Re: Jstl i18n not working
I've only seen that when struts can't find the resource file or the key...
Savan Thongvanh
Berkley Technology Services
515.278.7725
Yansheng Lin
[EMAIL PROTECTED]To: 'Tag Libraries Users List'
[EMAIL PROTECTED]gis.com
cc
: Monday, November 10, 2003 11:18 AM
To: 'Tag Libraries Users List'
Subject: RE: Jstl i18n not working
Ah, I wonder...
In my struts.xml file, I define the resource file too:
!-- == Message Resources Definitions
=== --
message-resources
Typo: directory = /WEB-INF/classes/org/j2e_translate
-Original Message-
From: Morrow, Steve D. [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 11:22 AM
To: 'Tag Libraries Users List'
Subject: RE: Jstl i18n not working
Assuming
with the result?
-Original Message-
From: Morrow, Steve D. [mailto:[EMAIL PROTECTED]
Sent: November 10, 2003 10:22 AM
To: 'Tag Libraries Users List'
Subject: RE: Jstl i18n not working
Assuming then, that the ApplicationResources.properties file is not in a
*.jar, you may try making sure
So, based on your updated info, this should be:
context-param
param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
param-valueorg.j2e_translate.ApplicationResources/param-value
/context-param
And you should have your property file located at:
PROTECTED]
Sent: November 10, 2003 10:07 AM
To: Tag Libraries Users List
Cc: 'Tag Libraries Users List'
Subject: Re: Jstl i18n not working
I've only seen that when struts can't find the resource file or the key...
Savan Thongvanh
Berkley Technology Services
515.278.7725
:
11/10/2003 11:29 Subject: RE: Jstl i18n not working
AM
--
Oh, wait, why do I need basename? Ah, I don't understand this very well
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: November 10, 2003 10:28 AM
To: Tag Libraries Users List
Subject: Re: Jstl i18n not working
So, based on your updated
PROTECTED]
Sent: Monday, November 10, 2003 11:35 AM
To: 'Tag Libraries Users List'
Subject: RE: Jstl i18n not working
Oh, I see. I can find the resource bundle now for my other
fmt:message. But it still doesn't solve my first problem.
That's why I got so confused. I guess it has something
:28 AM
To: Tag Libraries Users List
Subject: Re: Jstl i18n not working
So, based on your updated info, this should be:
context-param
param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
param-valueorg.j2e_translate.ApplicationResources/param-value
/context-param
anything in web.xml. Way better than changing anything in struts.xml.
Stupid ActionMapping:).
Thanks for your help!
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: November 10, 2003 10:41 AM
To: Tag Libraries Users List
Subject: RE: Jstl i18n not working
Okay
are other keys working?
Savan Thongvanh
Berkley Technology Services
515.278.7725
CONFIDENTIALITY NOTICE: This e-mail and the transmitted documents contain
private, privileged and confidential information belonging to the sender.
The information therein is solely for the use of the addressee.
:).
Thanks for your help!
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: November 10, 2003 10:41 AM
To: Tag Libraries Users List
Subject: RE: Jstl i18n not working
Okay, you've got a file called ApplicationResources.properties, right? If
it's
in WEB
To: Tag Libraries Users List
Subject: RE: Jstl i18n not working
You shouldn't have to restart TC just because you've made a
Struts config change. You may have to *redeploy* the app, but
that's different from restarting TC.
Quoting Yansheng Lin [EMAIL PROTECTED]:
Ok, got it working. I
Sorry to be a dirty cross-poster.
Yoav Shapiro has provided me with hope. When I told
him I was running Tomcat 4.0.6 as a Windows service,
he suggested that I shut it down and start Tomcat on
the command line using startup.bat.
When I did that, the app that was failing came right
up
Hey Dima,
Could you post a little more source of your JSP page? This looks OK to me, so I'd need
a little more information to check what's going wrong.
Grtz,
Martin
-Original Message-
From: Dima Gutzeit [mailto:[EMAIL PROTECTED]
Sent: dinsdag 30 september 2003 21:40
To: [EMAIL
PROTECTED]
Sent: Wednesday, October 01, 2003 9:46 AM
Subject: RE: JSTL / fmt locale question
Hey Dima,
Could you post a little more source of your JSP page? This looks OK to me,
so I'd need a little more information to check what's going wrong.
Grtz,
Martin
-Original Message-
From: Dima
Hey Dima,
set your Locale first then open your bundle.
Martin
-Original Message-
From: Dima Gutzeit [mailto:[EMAIL PROTECTED]
Sent: woensdag 1 oktober 2003 11:01
To: Tag Libraries Users List
Subject: Re: JSTL / fmt locale question
Here is a code snippet of bundle declaration
Thanks :-)
- Original Message -
From: Martin van Dijken [EMAIL PROTECTED]
To: Tag Libraries Users List [EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 10:07 AM
Subject: RE: JSTL / fmt locale question
Hey Dima,
set your Locale first then open your bundle.
Martin
-Original
Hey Adam,
The behaviour you describe seems to be according to specifications. I've inlined
section 8.4 of the spec below. This describes that you cannot use tags that establish
a Localization context if you want to prevent setLocale being called. I'm guessing
that's not altogether a big help
Hallo Martin,
thanks for the quote. I did read that before but just didn't realise its
significance.
I could have stayed with the struts bean taglib, but I spent a couple of
days last month changing over, because JSTL has more flexibility. :(
The quotation from the JSTL spec in my eyes shows
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 28, 2003 5:21 PM
To: Adam Hardy
Cc: Tag Libraries Users List
Subject: JSTL character encoding
In fmt:message key=../ the class
...tag.common.fmt.SetLocaleSupport's method
Hi Robb,
good solution. I suppose this is why it is called 'bleeding edge'!
I see tomcat 5 implements servlet spec 2.4 - that is a relief.
I checked out the servlet spec 2.4, as you said, there is the following
element-list in web.xml specified as 1 or more:
locale-encoding-mapping-list
Adam Hardy wrote:
Hi Robb,
good solution. I suppose this is why it is called 'bleeding edge'!
I see tomcat 5 implements servlet spec 2.4 - that is a relief.
I checked out the servlet spec 2.4, as you said, there is the following
element-list in web.xml specified as 1 or more:
Hans Bergsten wrote:
Adam Hardy wrote:
Hi Robb,
good solution. I suppose this is why it is called 'bleeding edge'!
I see tomcat 5 implements servlet spec 2.4 - that is a relief.
I checked out the servlet spec 2.4, as you said, there is the
following element-list in web.xml specified as 1 or
, but I would love to have a
framework I did not have to maintain alone.
Thanks again.
-Original Message-
From: Henri Yandell [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 20, 2003 10:45 PM
To: Tag Libraries Users List
Subject: Re: JSTL startup times - is caching going on?
The JSP
The JSP spec for Tomcat 4.1 does say that a container may cache Tag
objects between page runs. It sounds like this could be what's happening
here. I've no idea whether it would cache across sessions etc. Up to the
server and not the taglib.
On the speed issue. What are you using to create the
Any chance of getting that onto Safari?
I know I sound like broken record here, but I love it and I think it's a
good deal for the writer/publisher as well.
R.
Shawn Bayern wrote:
Hi there (from law school)! :)
As I take a break from reading about civil rights in California, I just
wanted
I've not seen any Manning books on Safari. I presume this is a
big-business thing and not related to a specific book. Manning are quite
into eBooks, so maybe they're seen as Safari competitors.
Hen
On Sun, 7 Sep 2003, Rick Ross wrote:
Any chance of getting that onto Safari?
I know I sound
Do you have more than one getPo function? Do you have a setPo
function?
And a long shot, you might try changing po to something more than two
letters (making sure you change all your accessors in the same way).
-Original Message-
From: Shah, Shrihas (OFT) [mailto:[EMAIL PROTECTED]
I would try using the Struts html-el tag libraries for doing this:
html:options property=po collection=${searchForm.po}/
You would obviously have to create a collection of beans that contained
the labelName and labelProperty accessors. More information on this
method can be obtained here:
All the JSTL tags use EL (Expression Language) which generally looks
like ${ ... }. All of the variables referenced in EL are in some sort
of scope, (page, request, session, application). That scope is handled
by HashMaps (E.g. request.getAttribute() what's used for requestScope
variables).
Users List [EMAIL PROTECTED]
Date: Mon, 21 Jul 2003 06:44:02 -0700
From: K.C. Baltz [EMAIL PROTECTED]
To: Tag Libraries Users List [EMAIL PROTECTED]
Subject: Re: JSTL question: how to use variables in c:if and c:set
All the JSTL tags use EL (Expression Language) which generally looks
like
' and 'applicationScope'?
-- Oorspronkelijk bericht --
Reply-To: Tag Libraries Users List [EMAIL PROTECTED]
Date: Mon, 21 Jul 2003 06:44:02 -0700
From: K.C. Baltz [EMAIL PROTECTED]
To: Tag Libraries Users List [EMAIL PROTECTED]
Subject: Re: JSTL question: how to use variables in c:if and c:set
All the JSTL
you can use c:import instead of %@ include, i think that would solve
your problem.
nick
On Sat, 5 Jul 2003, Rick Ross wrote:
I can't seem to get this to work:
%@ includes file=c:out value='${includePage}' / %
I didn't see anything in the Spec that suggests that it would violate spec, but
Rick Ross wrote:
I can't seem to get this to work:
%@ includes file=c:out value='${includePage}' / %
I didn't see anything in the Spec that suggests that it would violate spec,
but it wasn't mentioned either (as far as I saw.)
Rick, time to read a good book about JSP ;-) There are two ways to
I think I missed an important point, see intermixed below.
Hans Bergsten wrote:
Rick Ross wrote:
I can't seem to get this to work:
%@ includes file=c:out value='${includePage}' / %
I didn't see anything in the Spec that suggests that it would violate
spec,
but it wasn't mentioned either (as
Jim Kennedy wrote:
Has anyone tried this using pure JSTL or Struts. No rt.
I need to do something like this in JSP's
c:if test=${pageContext.request.userInRole('foo') == true}
EL doesn't support method evaluation, so yeah that won't work.
You can just create a simple tag on your own to do
This is handled with the logic:present tag in Struts. You can't call
arbitrary methods in the first version of the JSTL.
-Original Message-
From: Jim Kennedy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 12:58 PM
To: Tag Libraries Users List
Subject: JSTL and isUserInRole
change it to
c:if test=${pageContext.request.isUserInRole('foo')}
Thanks
KiranKumar (Raj)
ext 7203
-Original Message-
From: Jim Kennedy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 3:58 PM
To: Tag Libraries Users List
Subject: JSTL and isUserInRole
Has anyone tried this
Uh, no, that won't work. You can't call arbitrary methods in JSTL.
-Original Message-
From: Kumar, Kiran [mailto:[EMAIL PROTECTED]
change it to
c:if test=${pageContext.request.isUserInRole('foo')}
Thanks
KiranKumar (Raj)
ext 7203
-Original Message-
From: Jim
OOPS.. sorry. I just tried that it wont work
Thanks
KiranKumar (Raj)
ext 7203
-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 4:15 PM
To: Tag Libraries Users List
Subject: RE: JSTL and isUserInRole
Uh, no, that won't work. You can't
Ah!
Thanks.
At 11:55 AM 06/05/2003 -0400, you wrote:
I'm kind of sick right now so I'm only going to answer the first one real
fast.
(1.2) = requires a 1.2 container.
Gregory Guthrie
[EMAIL PROTECTED] (641)472-1125Fax: -1103
Hi, Augusto.
Augusto Rodriguez wrote:
Hi all !!
quick question, does JSTL work in WebSphere 4.0??
No, WebSphere 4.0 doesn't support Servlet 2.3 and
JSP 1.2.
--
Kan Ogawa
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL
Chen, Gin wrote:
Sorry this was posted not too long ago but I can't find it in the archives.
What are the JSTL 1.0 defined functions? (for trimming etc)
-Tim
See below. Please note that these
EL functions are only available in JSTL 1.1.
Original Message
Subject: Re: Rif: Re:
Thanks Pierre :)
Is there usage examples of these?
For example does trim work just like trim in java?
c:out value=${myString.trim()}/
Thanks,
-Tim
-Original Message-
From: Pierre Delisle [mailto:[EMAIL PROTECTED]
Sent: Friday, May 30, 2003 1:29 PM
To: Tag Libraries Users List
Subject: Re
It appears you do not have ${list.headers}set up properly. As written, you
must have an object named list and that object must have a public
getHeaders() method that returns an array, a list or other collection.
I have the following JSP:
c:forEach items=${list.headers} var=header
thc:out
On 03/25/03 14:04:14 -0500 Brian Buckley wrote:
It appears you do not have ${list.headers}set up properly. As written,
you must have an object named list and that object must have a public
getHeaders() method that returns an array, a list or other collection.
I have the following JSP:
c:forEach
Adam,
You are receiving the print out you have stated b/c you
are telling c:out to print the array object itself.
You need to give it an index to print out.
Try this...
c:out value=${header[0]} /
this will obviously just print the first element in
your array (index at 0) which will be
Here I cutpasted a code fragment of my JSP.
h3raw Model/h3
c:import var=xslturl2 url=/WEB-INF/transform/IdentityTransform.xsl
charEncoding=Shift_JIS/
%@ page import=java.io.StringWriter %
%@ page
Missing setters dont cause a problem and missing getters dont either (it
just wont get that variable ;)
Java Introspection is based on what it finds for getters and setters and not
the actual variable.
But even though that's how ji works it is still considered standard to
define all getters and
mailinglist wrote:
Hi,
I installed Sun jwsdp-1_1 and copied jstl-examples.war in Tomcat 4.1.18
webapps (not the one shipped with Sun jwsdp) but I get an error when I try
the examples:
HTTP 500
javax.servlet.ServletException: Cannot inherit from final class
at
Wendy == Wendy Smoak [EMAIL PROTECTED] writes:
Wendy I have a DTO that contains a List of objects. Since you can add any Object
Wendy to a List, I would rather not have a
Wendy setAssistants( List asst );
Wendy method that would allow someone to add a list of inappropriate
Set the escapeXml attribute to false.
c:out value=${foo} escapeXml=false /
The JSTL taglibs (c:out) re-write html tags into GT so the actual text
prints out. Is there any way to disable this?
-
To unsubscribe, e-mail:
On Mon, 10 Mar 2003, Hanasaki JiJi wrote:
The JSTL taglibs (c:out) re-write html tags into GT so the actual
text prints out. Is there any way to disable this?
Yes, the escapeXml=false attribute of the c:out tag disables this
behavior.
--
Shawn Bayern
JSTL in Action
Thanks to Brian and Shawn! anyone know of a lib that will perfrom the
escXML on a String?
goal:
take in input string that may / maynot have HTML tags
zap the html tags or turn them to pure text ala LT
add some HTML tags
output via c:out escapeXml=false
dont want
On Mon, 10 Mar 2003, Hanasaki JiJi wrote:
Thanks to Brian and Shawn! anyone know of a lib that will perfrom the
escXML on a String?
goal:
take in input string that may / maynot have HTML tags
zap the html tags or turn them to pure text ala LT
You can use c:out wrapped by
I've had that same problem a few days ago.
Besides the code you already typed (which seems to be ok) you will need to
have:
1) The library (.jar) under your JSP container's specific sub directory
(e.g. d:\tomcat\common\lib). Not on your application (so it
works from any other
201 - 300 of 561 matches
Mail list logo