Maybe the simplest thing is to implement that only function in your own tag
library (I cannot help very much in this topic but I understand it's not
complicated declaring the functions as it's not declaring tags)
At 14:08 16/08/2004 -0400, you wrote:
Because of the difficulty I had integrating
I think you mean http://www.servletsuite.com/ on the left side of the screen under
products server side.
:-)
Simon
-Original Message-
From: Þorgils Völundarson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 6:35 AM
To: Tag Libraries Users List
Subject: Re: JSTL 1.0
Here's a quick EL-only version of an indexOf tag. There's an example here:
http://www.onjava.com/pub/a/onjava/2002/09/11/jstl2.html
of using Standard taglib classes to build your own EL-aware tags.
package com.dotech;
import java.io.IOException;
import javax.servlet.jsp.JspException;
import
The major difference between what JSTL does to populate the rows of the
myQuery variable and your scriptlet code is that JSTL uses
ResultSet.getObject while your scriptlet code uses ResultSet.getString. So, if
you change this:
String fieldValue = m_rs.getString(nick_name);
out.println(fieldValue
Kris Schneider wrote:
The major difference between what JSTL does to populate the rows of the
myQuery variable and your scriptlet code is that JSTL uses
ResultSet.getObject while your scriptlet code uses ResultSet.getString.
Thanks Kris for the answer.
I understand better. I change my query,now:
, Chris [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 16 maart 2004 18:29
Aan: Tag Libraries Users List
Onderwerp: RE: JSTL 1.1 jaxp problem (under tomcat 5.0.19/java 1.4.2_03)
Thanks for all of the help so far.
I submitted bug 27717.
Chris
-Original Message-
From: [EMAIL PROTECTED
I haven't heard a thing.
-Original Message-
From: Wim Goossens [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 28, 2004 4:46 AM
To: Tag Libraries Users List
Subject: RE: JSTL 1.1 jaxp problem (under tomcat 5.0.19/java 1.4.2_03)
Chris, Kris, Pierre,
Do you know anything about a fix
I strongly suggest you download a demo of JSF you will be, as I was,
very impressed with the power of it.
Look up http://horstmann.com/corejsf/ for an intro.
This other site will answer most of your questions as to were JSF
struts fit. http://www.jsfcentral.com/
Cheers,
Simon
-Original
You might explore the issue with JAXP/SAX/Xerces initially to see if it
is a parser level issue, JSTL XML simply is a wrapper around JAXP.
-Mark
Dylan MacDonald wrote:
Hi -
I would like to store some multibyte content in an xml file and then
retrieve and display that content using the JSTL XML
Worked great! Thanks.
Jack
Martin Cooper wrote:
On Sun, 13 Jun 2004, Jack Lauman wrote:
I'm using the following code to insert data from a form.
The first to fields in the data base don't come from form fields but
from entries in the web.xml file. How do you insert the web.xml value
of:
-Original Message-
From: Bill Siggelkow [mailto:[EMAIL PROTECTED]
Sent: June 1, 2004 8:49 PM
To: 'Tag Libraries Users List'
Subject: RE: [JSTL] Indexed array variable
I don't think that JSTL is going to be able to create array
elements. I think you will need to allocate
Good idea but how will multi-dimensional arrays be populated?
Simon
-Original Message-
From: Helios Alonso [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 9:48 AM
To: Tag Libraries Users List
Subject: RE: [JSTL] Indexed array variable
It would be great. I think it's very
-dimensional array, and so on.
What do you think?
Derek
-Original Message-
From: Simon Benzekri
Sent: June 2, 2004 10:10 AM
To: Tag Libraries Users List
Subject: RE: [JSTL] Indexed array variable
Good idea but how will multi-dimensional arrays be populated?
Simon
-Original
Message-
From: Simon Benzekri
Sent: June 2, 2004 10:10 AM
To: Tag Libraries Users List
Subject: RE: [JSTL] Indexed array variable
Good idea but how will multi-dimensional arrays be populated?
Simon
-Original Message-
From: Helios Alonso [mailto:[EMAIL PROTECTED]
Sent
Libraries Users List
Subject: RE: [JSTL] Indexed array variable
Good question! We can represent a multi-dimensional array as a
recursive array of arrays. For example, given tag c:setArray, we
could both allocate and assign a two-dimensional array as follows:
%-- Create the first row, assign
Well, c:set can set associations.
If the code I saw is fine, you can do this:
c:set target=myAsoc property=name value=John/
to add an entry in myAsoc: Map
telling that name correspond to John
how do I do to access it? ${myAsoc['name']} ?
At 12:05 02/06/2004 -0300, you wrote:
2 questions:
1) At
[mailto:[EMAIL PROTECTED]
Sent: June 2, 2004 11:23 AM
To: Tag Libraries Users List
Subject: RE: [JSTL] Indexed array variable (and associations)
Well, c:set can set associations.
If the code I saw is fine, you can do this:
c:set target=myAsoc property=name value=John/
to add an entry
At 12:22 02/06/2004 -0300, you wrote:
Well, c:set can set associations.
If the code I saw is fine, you can do this:
c:set target=myAsoc property=name value=John/
to add an entry in myAsoc: Map
telling that name correspond to John
how do I do to access it? ${myAsoc['name']} ?
Thanks (I finally
]}
and so on.
Derek
-Original Message-
From: Helios Alonso [mailto:[EMAIL PROTECTED]
Sent: June 2, 2004 11:05 AM
To: Tag Libraries Users List
Subject: RE: [JSTL] Indexed array variable
2 questions:
1) At the moment, does EL allows bracket notation for accesing arrays?
2
c:set to permit the assignment
of array elements?
Derek
-Original Message-
From: Bill Siggelkow [mailto:[EMAIL PROTECTED]
Sent: June 1, 2004 8:49 PM
To: 'Tag Libraries Users List'
Subject: RE: [JSTL] Indexed array variable
I don't think that JSTL is going to be able to create array
as an
attribute, you should make this clear in the tag documentation.
Derek
-Original Message-
From: Helios Alonso [mailto:[EMAIL PROTECTED]
Sent: June 2, 2004 12:02 PM
To: Tag Libraries Users List
Subject: RE: [JSTL] Indexed array variable (and associations)
At 12:22 02/06/2004 -0300
I don't think that JSTL is going to be able to create array elements. I
think you will need to allocate the array ahead of time. Maybe someone else
can clarify this a little more.
Bill Siggelkow
[EMAIL PROTECTED]
-Original Message-
From: Derek Mahar [mailto:[EMAIL PROTECTED]
Sent:
direction and being patient with my posts as I
worked through my problem.
Derek
-Original Message-
From: Wolfgang Rckelein [mailto:[EMAIL PROTECTED]
Sent: May 19, 2004 10:40 AM
To: Tag Libraries Users List
Subject: Re: [JSTL] How do I enter a null value with sql:param?
Keith wrote
, so it is unnecessary to identify its type.
Derek
-Original Message-
From: Derek Mahar
Sent: May 20, 2004 2:08 PM
To: Tag Libraries Users List
Subject: RE: [JSTL] How do I enter a null value with sql:param?
Thank you. I appreciate your attention and quick response.
After reading JDBC
Subject: RE: [JSTL] How do I enter a null value with sql:param?
Thank you. I appreciate your attention and quick response.
After reading JDBC Specification Section 13.2.2.3, Setting NULL Parameters, I
understand now why Kris suggested that the JSTL specification add the sqlType
. set the selected SQL parameter
to NULL)? Have you encountered any serious flaws using this driver?
Derek
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: May 20, 2004 2:57 PM
To: Tag Libraries Users List
Subject: RE: [JSTL] How do I enter a null value
.
Thank you again for this jTDS reference!
Derek
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: May 20, 2004 3:21 PM
To: Tag Libraries Users List
Subject: RE: [JSTL] How do I enter a null value with sql:param?
I'm merely aware of its existence. I've never used
[EMAIL PROTECTED]
Sent: Thu, 20 May 2004 16:02:02 -0400
Subject: RE: [JSTL] How do I enter a null value with sql:param?
Wow! I just installed the jTDS JDBC driver for Microsoft SQL Server, and it does
*not*
produce the NULL parameter problem that I encountered using Microsoft's SQL Server
JDBC
in the
implementation of sql:param where it treats null as a string
argument rather than as an SQL null argument.
Derek
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: May 18, 2004 9:10 PM
To: Tag Libraries Users List
Subject: Re: [JSTL] How do I enter a null value
: May 18, 2004 9:10 PM
To: Tag Libraries Users List
Subject: Re: [JSTL] How do I enter a null value with sql:param?
sql:param value=${null}/
Derek Mahar wrote:
How do I enter a null value into a table column with sql:param? The
JSTL 1.1 specification states for sql:param that, If value
Correction: the table name should have read tblTest rather than
tblTestDerek.
-Original Message-
From: Derek Mahar
Sent: May 19, 2004 9:45 AM
To: Tag Libraries Users List
Subject: RE: [JSTL] How do I enter a null value with sql:param?
Your solution is equivalent to Case 2 that I listed
Derek Mahar wrote:
Your solution is equivalent to Case 2 that I listed in my original
message. The Microsoft SQL Server JDBC driver complains with a
JspException:
javax.servlet.ServletException: javax.servlet.jsp.JspException:
INSERT INTO tblTest(a) VALUES (?)
: [Microsoft][SQLServer 2000
]/msg06748.html
Keith
-- Original Message ---
From: Wolfgang Röckelein [EMAIL PROTECTED]
To: Tag Libraries Users List [EMAIL PROTECTED]
Sent: Wed, 19 May 2004 16:05:14 +0200
Subject: Re: [JSTL] How do I enter a null value with sql:param?
Derek Mahar wrote:
Your solution
It certainly could be a driver issue, but you've gotta pass null instead of
null to find out ;-). The Standard taglib uses the following to set SQL
parameters:
PreparedStatement.setObject(int parameterIndex, Object x)
It should be pretty easy to write a simple JDBC test to see how your driver
Keith wrote:
This was on the Users list and was my problem. But mine had to do specifically with the
sql:dateParam and the Oracle JDBC driver. The regular sql:param worked fine for me
when I passed it a null value.
Link to the starting thread in the archive:
http://www.mail-archive.com/[EMAIL
Libraries Users List
Subject: RE: [JSTL] How do I enter a null value with sql:param?
It's really not equivalent. Your Case 2 was:
c:set var=nullValue value=null/
Which sets nullValue to the String literal null. I suggested the
equivalent
of:
c:set var=nullValue value=${null}/
Which will set
PROTECTED]
Sent: May 19, 2004 10:28 AM
To: Tag Libraries Users List; [EMAIL PROTECTED]
Subject: Re: [JSTL] How do I enter a null value with sql:param?
It certainly could be a driver issue, but you've gotta pass null instead of null to
find out ;-). The Standard taglib uses the following to set SQL
nothing about how it handles a null object
reference.
Derek
-Original Message-
From: Keith [mailto:[EMAIL PROTECTED]
Sent: May 19, 2004 10:28 AM
To: [EMAIL PROTECTED]
Subject: Re: [JSTL] How do I enter a null value with sql:param?
This was on the Users list and was my problem
/[EMAIL PROTECTED]/msg06989.html
Derek
-Original Message-
From: Keith [mailto:[EMAIL PROTECTED]
Sent: May 19, 2004 10:28 AM
To: [EMAIL PROTECTED]
Subject: Re: [JSTL] How do I enter a null value with sql:param?
This was on the Users list and was my problem. But mine had to do specifically
for pointing me in the right direction and being patient with my posts as I
worked through my problem.
Derek
-Original Message-
From: Wolfgang Röckelein [mailto:[EMAIL PROTECTED]
Sent: May 19, 2004 10:40 AM
To: Tag Libraries Users List
Subject: Re: [JSTL] How do I enter a null value
sql:param value=${null}/
Derek Mahar wrote:
How do I enter a null value into a table column with sql:param? The
JSTL 1.1 specification states for sql:param that, If value is null,
the parameter is set to the SQL value NULL. However, no matter what
value I pass to sql:param, I'm unable to set a
Take a look at DisplayTag
(http://www.displaytag.org/example-grouping.jsp). It does grouping and
lots of other very cool things with tables.
Steve
-Original Message-
From: Jack Lauman [mailto:[EMAIL PROTECTED]
Sent: May 8, 2004 10:27 AM
To: Tag Libraries Users List
Subject: JSTL
Take a look at DisplayTag
(http://www.displaytag.org/example-grouping.jsp). It does grouping and
lots of other very cool things with tables.
Steve
-Original Message-
From: Jack Lauman [mailto:[EMAIL PROTECTED]
Sent: May 8, 2004 10:27 AM
To: Tag Libraries Users List
Subject: JSTL
Nice.. but it produces html that won't work in older browsers.
Thanks,
Jack
Steve Raeburn wrote:
Take a look at DisplayTag
(http://www.displaytag.org/example-grouping.jsp). It does grouping and
lots of other very cool things with tables.
Steve
]
Sent: May 8, 2004 3:59 PM
To: Tag Libraries Users List
Subject: Re: JSTL Formatting Question
Nice.. but it produces html that won't work in older browsers.
Thanks,
Jack
Steve Raeburn wrote:
Take a look at DisplayTag
(http://www.displaytag.org/example-grouping.jsp). It does
, 2004 3:59 PM
To: Tag Libraries Users List
Subject: Re: JSTL Formatting Question
Nice.. but it produces html that won't work in older browsers.
Thanks,
Jack
Steve Raeburn wrote:
Take a look at DisplayTag
(http://www.displaytag.org/example-grouping.jsp). It does
grouping and
lots of other very
Not sure if I'm understanding your problem correctly, but to use the function tags you
need to have a different taglib uri besides the core.
%@ taglib prefix=fn uri=http://java.sun.com/jsp/jstl/functions; %
Keith
-- Original Message ---
From: Anuj Agrawal [EMAIL PROTECTED]
Some additional info:
You need both jstl.jar and standard.jar. JSTL 1.1 requires JSP 2.0/Servlet 2.4 -
does your version of WSAD support that? You'll also want to make sure your app
is using a Servlet 2.4 style web.xml.
Quoting Keith [EMAIL PROTECTED]:
Not sure if I'm understanding your
Keith - i know about the using the correct uri. Thanks.
Kris - my web.xml has !DOCTYPE web-app PUBLIC -//Sun Microsystems,
Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd; .. doesn't look like my
tomcat is compliant, and i'm not sure about WSAD (i have version
5.0.0.2).
TC5 is compliant, but I'd make sure to get the latest: 5.0.19. This is what I
mean by a Servlet 2.4 web.xml:
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/web-app_2_4.xsd;
Try to read the READ ME file in the compressed file that you downloaded for the JSTL
1.1. And read the section on library dependancies. It is recommended that you have
Java sdk 1.4.2 OR else you better include the dependancies stated in that READ ME
file. Good luck.
Wallace
From: Anuj
for tech_row --%
/select
br
/c:forEach
%-- end forEach for chosen_tech --%
-- Original Message ---
From: Jeff Brewer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sun, 11 Apr 2004 18:17:05 -0400
Subject: Re: JSTL Tags Vs. JavaBeans
Sure. Here's a piece
-Original Message-
From: Jeff Brewer [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 11, 2004 11:27 AM
To: [EMAIL PROTECTED]
Subject: JSTL Tags Vs. JavaBeans
In the process of trying to get my site up and running I came
across a page that I'd written a year ago (not a big
What's the current State of the (JSP) Art with respect to JSTL vs.
JavaBeans? Is one preferred over the other?
I'm not sure what you mean. JSTL can use and manipulate JavaBeans -
they're complimentary technologies, rather than alternatives. Perhaps
if you could describe a little about what
//td
/tr
- Original Message -
From: Martin Cooper [EMAIL PROTECTED]
To: Tag Libraries Users List [EMAIL PROTECTED]
Sent: Sunday, April 11, 2004 2:43 PM
Subject: RE: JSTL Tags Vs. JavaBeans
-Original Message-
From: Jeff Brewer [mailto:[EMAIL PROTECTED]
Sent: Sunday
Martin Cooper wrote:
Depending on your usage, you might be able to put a whitespace-stripping
filter in front of your JSP pages, to collapse all this down.
I think this it's the best solution. I search some thing like that.
tks Martin your help it is very appreciate :)
regards Lorenzo
Depending on your usage, you might be able to put a whitespace-stripping
filter in front of your JSP pages, to collapse all this down.
Alternatively, you could adopt the funky JSP coding style I've seen some
people use, ensuring that you don't have whitespace between your tags.
So instead of
much success with setting up JSTL and consider it a miracle that I got any
part of it to work.
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 12:20 PM
To: Tag Libraries Users List
Subject: RE: JSTL Function Library
There's really
The test worked. My original jsp pages still have the same problem. I
should be able to figure it out. Thanks a lot.
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 7:47 AM
To: Tag Libraries Users List
Subject: RE: JSTL Function Library
Make sure you're using JSTL 1.1.
%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %
%@ taglib prefix=fn uri=http://java.sun.com/jsp/jstl/functions; %
Functions are really part of the EL, so use them within an EL expression:
${fn:trim(row.user_id)}
Quoting [EMAIL PROTECTED]:
I am
ideas why?
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 11:16 AM
To: Tag Libraries Users List
Subject: Re: JSTL Function Library
Make sure you're using JSTL 1.1.
%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %
%@ taglib
as expected. Any ideas why?
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 11:16 AM
To: Tag Libraries Users List
Subject: Re: JSTL Function Library
Make sure you're using JSTL 1.1.
%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl
how to prepare my server for JSTL 1.1?
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 11:36 AM
To: Tag Libraries Users List
Subject: RE: JSTL Function Library
Make sure you're also using a Servlet 2.4 web.xml:
web-app xmlns=http
Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 11:36 AM
To: Tag Libraries Users List
Subject: RE: JSTL Function Library
Make sure you're also using a Servlet 2.4 web.xml:
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http
To: Tag Libraries Users List
Subject: RE: JSTL Function Library
There's really nothing you need to do to the server*, just make sure it
supports
JSP 2.0. You appear to be using Tomcat 5, so you should be fine (you might
want
to make sure you've got the latest version: 5.0.19). As for your app, all
Martin Cooper wrote:
Since what you want to read is XML, you can do this as long as you actually
want to parse the XML as well. Try this:
x:parse var=parsedXml xml=${pageContext.request.reader}/
Great! It work fine! many thanks :)
I love Jstl. Usefull, Powerfull and easy.
Regards Lorenzo
-Original Message-
From: Lorenzo Sicilia [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 31, 2004 6:17 AM
To: Tag Libraries Users List
Subject: jstl read raw data
hi list,
I need read some xml data in post.
I have found some example in jsp that show raw data post:
.
Thanks again,
Chris
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 3:37 PM
To: Tag Libraries Users List
Subject: RE: JSTL 1.1 jaxp problem (under tomcat 5.0.19/java 1.4.2_03)
Try adding
-Dorg.apache.xml.dtm.DTMManager
do
I know?
Any help you can get me in escalating this would be much appreciated.
Thanks again,
Chris
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 3:37 PM
To: Tag Libraries Users List
Subject: RE: JSTL 1.1 jaxp problem (under tomcat 5.0.19
Thanks for all of the help so far.
I submitted bug 27717.
Chris
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 10:58 AM
To: Tag Libraries Users List
Subject: Re: JSTL 1.1 jaxp problem (under tomcat 5.0.19/java 1.4.2_03)
Yes, as Kris
Interesting. x:forEach has been tagged as a performance problem before for
JSTL 1.1, but without the accompanying truss info. The XPath engine for JSTL
was changed from Jaxen/SAXPath in 1.0 to Xalan in 1.1. If you can replace
x:forEach with x:transform and an XSLT stylesheet, that seemed to help
, 2004 2:32 PM
To: Tag Libraries Users List
Subject: Re: JSTL 1.1 jaxp problem (under tomcat 5.0.19/java 1.4.2_03)
Interesting. x:forEach has been tagged as a performance problem before
for JSTL 1.1, but without the accompanying truss info. The XPath engine
for JSTL was changed from Jaxen/SAXPath
But would this work?
fmt_rt:formatDate value=${row.TIME}
timeZone=%= Constants.TIMEZONE %
pattern=dd-MM- 'at' HH:mm/
I'm using both rt and EL in the same tag ?
No. It is one or the other. Cannot mix within the same action.
However, you can mix both EL-
PROTECTED]
Sent: woensdag 25 februari 2004 8:18
To: Tag Libraries Users List
Subject: RE: JSTL fmt:formatDate bug ???
Could you post the code to manually format the date?
I can easily compare that to what is being done by
the JSTL implementation and give you some feedback
a SimpleDateFormat with a pattern as
argument. JSTL uses
the constructor with a Locale as additional
parameter.
Grtz,
Martin
-Original Message-
From: Riaan Oberholzer
[mailto:[EMAIL PROTECTED]
Sent: woensdag 25 februari 2004 8:18
To: Tag Libraries Users List
Subject: RE: JSTL
confusing and illogical to work with, but
that's just my personal frustration.
Martin
-Original Message-
From: Riaan Oberholzer [mailto:[EMAIL PROTECTED]
Sent: woensdag 25 februari 2004 10:48
To: Tag Libraries Users List
Subject: RE: JSTL fmt:formatDate bug ???
I'm a bit lost here
List
Subject: RE: JSTL fmt:formatDate bug ???
I'm a bit lost here can you give me an example
of
what I should give to jstl to print the time as
Europe/London ?
Thanks
Charl
--- Martin van Dijken [EMAIL PROTECTED]
wrote:
Hey Riaan,
Try fiddling around
...
please help me to resolve the above problem with some Examples.
R.Sreekant
-Original Message-
From: Martin van Dijken [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 4:39 PM
To: 'Tag Libraries Users List'
Subject: RE: JSTL fmt:formatDate bug ???
Try
12:17
To: Tag Libraries Users List
Subject: RE: JSTL fmt:formatDate bug ???
fmt:setLocale value=nl_NL/
fmt:formatDate value=${obj}
timeZone=Europe/London type=time/
I want to keep the language english... possible? IE,
say that we are in The Netherlands, but work in
English
On 02/25/2004 12:16 PM Riaan Oberholzer wrote:
fmt:setLocale value=nl_NL/
fmt:formatDate value=${obj}
timeZone=Europe/London type=time/
I want to keep the language english... possible? IE,
say that we are in The Netherlands, but work in
English ... otherwise it will try to locate Dutch
resource
I know that in fmt:message there is a deficiency
which means that date
formatting of parameters to the message does not
happen.
I'm using the latest version, 1.0.5, released on
January 27 pretty much up to date.
Don't worry about not having Dutch resource bundles.
OK, good to hear
[mailto:[EMAIL PROTECTED]
Sent: woensdag 25 februari 2004 10:48
To: Tag Libraries Users List
Subject: RE: JSTL fmt:formatDate bug ???
I'm a bit lost here can you give me an example
of
what I should give to jstl to print the time as
Europe/London ?
Thanks
Charl
Locale business very confusing and
illogical to work with, but
that's just my personal frustration.
Martin
-Original Message-
From: Riaan Oberholzer
[mailto:[EMAIL PROTECTED]
Sent: woensdag 25 februari 2004 10:48
To: Tag Libraries Users List
Subject: RE: JSTL
PROTECTED]
Sent: woensdag 25 februari 2004 10:48
To: Tag Libraries Users List
Subject: RE: JSTL fmt:formatDate bug ???
I'm a bit lost here can you give me an example
of
what I should give to jstl to print the time as
Europe/London ?
Thanks
Charl
--- Martin
List
Subject: RE: JSTL fmt:formatDate bug ???
I'm a bit lost here can you give me an example
of
what I should give to jstl to print the time as
Europe/London ?
Thanks
Charl
--- Martin van Dijken [EMAIL PROTECTED]
wrote:
Hey Riaan,
Try fiddling around with setting the locale in
JSTL
-Original Message-
From: Riaan Oberholzer
[mailto:[EMAIL PROTECTED]
Sent: woensdag 25 februari 2004 10:48
To: Tag Libraries Users List
Subject: RE: JSTL fmt:formatDate bug ???
I'm a bit lost here can you give me an
example
of
what I should give to jstl to print
Remove the JAR files from any place other than WEB-INF/lib (e.g. the JBoss lib
directory). The URI in the error message (http://java.sun.com/jsp/jstl/fmt) is
for JSTL 1.1. Are you using a version of JB with JSP 2.0 support? If not, you
need to use JSTL 1.0. In which case the URI would be
OK got rid of the jars. The only place they now occur is in the war
file's WEB-INF/lib directory.
This is the tomcat5 SAR in JBoss.
It's been working fine in the tomcat5 stand-alone. Now in JBoss, it
complains. How does tomcat know where to find the tlds normally?
Obviously something in its
Are you sure you've got the JSTL 1.1 JAR files installed and not 1.0? This seems
like such a basic feature, it'd be pretty lame if JB is somehow messing it up.
As for how TC 5 normally locates TLD files, the gory details are in sections
JSP.7.2 and JSP.7.3 of the JSP 2.0 Spec.
Quoting Adam Hardy
Hey Lorenzo,
Check out Lomboz or MyEclipse for JSP Eclipse plugins. Lomboz is open
source and therefore free, but I've found it to be slightly buggy.
MyEclipse (www.myeclipseide.org) costs $30 and is far more stable. There
are other options, check them at www.eclipse-plugins.info
Good luck,
This is part of the manifest from the standard.jar
Specification-Version: 1.1
Implementation-Title: jakarta-taglibs 'standard': an implementation of
JSTL
Implementation-Version: 1.1.0
Implementation-Vendor: Apache Software Foundation
Implementation-Vendor-Id: org.apache
Extension-Name:
Martin van Dijken wrote:
Hey Lorenzo,
Check out Lomboz or MyEclipse for JSP Eclipse plugins. Lomboz is open
source and therefore free, but I've found it to be slightly buggy.
MyEclipse (www.myeclipseide.org) costs $30 and is far more stable. There
are other options, check them at
the available tags or the available attributes of
the current tag. Excellent stuff
Martin
-Original Message-
From: Lorenzo Sicilia [mailto:[EMAIL PROTECTED]
Sent: dinsdag 24 februari 2004 15:30
To: Tag Libraries Users List
Subject: Re: jstl editor
Martin van Dijken wrote:
Hey
Martin van Dijken wrote:
In Myeclipse version 2.7 there is code completion support for taglibs in
general. If you include the JSTL taglibrary in your project and use a
%@ taglib referring to it, all tags that follow it are syntax colored
according to the tld. Also, when you use the key to start
Hey Riaan,
Could you post the code to manually format the date? I can easily
compare that to what is being done by the JSTL implementation and give
you some feedback on that.
Grtz,
Martin
PS Thanks for hosting your application in our fine little country:)
-Original Message-
From:
Could you post the code to manually format the date?
I can easily compare that to what is being done by
the JSTL implementation and give you some feedback
on that.
Something to the extend of:
static
{
SimpleDateFormatter sdf = new
SimpleDateFormatter(-MM-dd HH:mm);
Thanks, I'll check that out today. It may not work, as I dumped all the session
attributes but didn't find anything except for the request charset being set.
Rick DeBay
On Fri, 20 Feb 2004 20:05 , Vernon Wu [EMAIL PROTECTED] sent:
This shall help you out.
javax.servlet.jsp.jstl.core.Config
Right, you can set the FMT_LOCALE attribute and JSTL will use it. My problem is
determining what Locale JSTL decided to use after parsing the Accept-Language header.
I may have to do it in the JSP after the first call to fmt:message, and check the
Locale that was set on the response:
fmt:message
If I understand your question correctly, you want to determinate which locale will be
used based on the accept-language list. The question comes down to how you wish your
application to behave in the regard. I know the answer for the designed behavior.
(An article on this subject was published
It's plausible that a client may want to change their locale between requests,
so it wouldn't make much sense for JSTL to freeze it. Are you asking how to
find out which locale JSTL actually chooses for browser-based locale setting? I
don't think there's a convenient way to do that, but you can
101 - 200 of 561 matches
Mail list logo