Hello Marc,
Probably it is not the same problem as reported in bugzilla.
When I am using the release version of the mailer tag lib it is not
possible to specify charset at all.
When I am using the nightly built of the mailer tag lib tomcat doeas not
start correctly :
2004-06-02 12:10:12
Hello Kris,
I heve removed the string xmlns:xalan=http://xml.apache.org/xslt; from
the taglib element in the tld file and the same error occured again
during tomcat starting.
best regards,
Lukasz
Kris Schneider wrote:
That looks like a build error that's been popping up in a few different
Did you remove it from the TLD packaged in the taglib's JAR file or just from an
external TLD?
Quoting [EMAIL PROTECTED] [EMAIL PROTECTED]:
Hello Kris,
I heve removed the string xmlns:xalan=http://xml.apache.org/xslt; from
the taglib element in the tld file and the same error occured again
Thanks,
I have removed it from the tld file and recreated the jar file.
Now tomcat is starting correctly:)
Thanks a lot.
I will test the charset attribute now.
regards,
Lukasz
Kris Schneider wrote:
Did you remove it from the TLD packaged in the taglib's JAR file or just from an
external TLD?
I think you're right. Just like no JSTL tag exists to create an
associative array (a bean or a map indexed by string), no JSTL tag
exists that can explicitly allocate an indexed array. jsp:useBean can
create both associative and indexed arrays, and c:set can set
associative array properties, but
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
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 it values at index 0 and 1.
%-- Assign the row to myArray at index
2 questions:
1) At the moment, does EL allows bracket notation for accesing arrays?
2) If the answer is yes, it works with associations? (Maps from -let's say-
strings, to beans)
Sorry, I can't try now...
At 10:53 02/06/2004 -0400, you wrote:
Good question! We can represent a multi-dimensional
Good idea, I would make the following changes though;
c:setArray name=myArray dimension=2
c:defArray column=Exam1 column=Exam2 column=Avg row=student
/c:setArray
Which would produce;
Exam1 Exam2 Avg
Student170 80 75
Student260 70 65
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
Yes, that is correct. You may refer to the propert 'name' in bean
'myAsoc' in two ways:
${myAsoc['name']}
${myAsoc.name}
For a good description of the JSP 2.0 EL and JSTL, see
JSP 2.0: The New Deal, Part 1
http://www.onjava.com/pub/a/onjava/2003/11/05/jsp.html
JSP 2.0: The New Deal, Part 2
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
Yes, the EL can access array elements to, I believe, an arbitrary number of dimensions
(please correct me if I'm wrong):
%-- One dimensional array --%
${myArray[index]}
%-- Two dimensional array --%
${myArray[index][index2]}
%-- Three dimensional array --%
${myArray[index][index2][index3]}
Good idea. I would separate the logic and data from the presentation
within the taglib. Let people choose whether they want to create their own
look-and-feel.
Michael
At 06:47 AM 6/2/2004, Helios Alonso wrote:
It would be great. I think it's very appropiate (very common idea even
for
Very clever! This is an interesting way around JSTL's array creation
and assignment limitations. You represent the array as an XML document
and instead of indexing the array using EL, you use the JSTL XML tags
and XPath.
Of course, if you define tag that accepts such a parsed XML array as an
I changed your example only to make it work more nicely as text output:
%@ page contentType=text/plain %
%@ taglib prefix=fmt uri=http://java.sun.com/jstl/fmt; %
%@ taglib prefix=x uri=http://java.sun.com/jstl/xml; %
x:parse var=xml
test
unit date=20040602142014
/unit
unit
also worked for me, in Jetty (Servlet 2.3/JSP1.2) with far older Xerces and
Xalan version.
Xerces 1.4.3, Xalan 2.3.1
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: 02 June 2004 18:45
To: Tag Libraries Users List
Subject: Re: xml and date problem
I changed
have you tried this:
x:parse var=myxml
test
unit date=20040602142014
/unit
unit date=20040602143809
/unit
/test
/x:parse
table
x:forEach select=$myxml/test/unit
TR
TD
x:out select=@date /
/TD
/TR
/x:forEach
/TABLE
On Wednesday 02 June 2004 17:52, Felix Velasco wrote:
have you tried this:
x:parse var=myxml
test
unit date=20040602142014
/unit
unit date=20040602143809
/unit
/test
/x:parse
table
x:forEach select=$myxml/test/unit
TR
TD
I used JSTL 1.0 as well with TC 5.0.24 because I ran with a Servlet 2.3 web.xml.
Just for giggles, I tried it with TC 4.1.30 and it also worked fine. Are you
using the latest Standard 1.0 taglib? It's currently at 1.0.5.
Quoting David Goodenough [EMAIL PROTECTED]:
On Wednesday 02 June 2004
Hi-
JSP Newbie here..
I have what appears to be a setup problem. But after several googles on
the subject, I am as lost as when I started..
I have installed TC 5 and the latest jakarta jstl download including the
examples.
Everything in the examples works fine, except for the xml transform
On Wednesday 02 June 2004 18:41, Kris Schneider wrote:
I used JSTL 1.0 as well with TC 5.0.24 because I ran with a Servlet 2.3
web.xml. Just for giggles, I tried it with TC 4.1.30 and it also worked
fine. Are you using the latest Standard 1.0 taglib? It's currently at
1.0.5.
I suspect this
Grab Xalan:
http://www.apache.org/dyn/closer.cgi/xml/xalan-j
Install the following in $CATALINA_HOME/common/endorsed (create the endorsed dir
if needed):
xalan.jar
xercesImpl.jar
xml-apis.jar
You should be good to go...
Quoting [EMAIL PROTECTED]:
Hi-
JSP Newbie here..
I have what appears
So I have tested the charset attribute now.
It works OK - I can see national characters in the e-mail body.
thanks again,
Lukasz
[EMAIL PROTECTED] wrote:
Thanks,
I have removed it from the tld file and recreated the jar file.
Now tomcat is starting correctly:)
Thanks a lot.
I will test the charset
Thanks for the reply.
That is the setup that I thought I had put in place on a Win 2003 server
box.
When I tried to run some jstl examples from a book, most of them worked
right away, so I thought that I was good to go.
Then I tried the book's XML examples and found that none of them would
work.
Hi Bart,
What is the J2SE version that you are using on Windows?
The JSTL release comes with a pre-packaged examples war file that you
can drop into your Tomcat webapps directory. It is called
standard-examples.war. You don't need to do any custom packaging for
the examples.
Sounds like you've
26 matches
Mail list logo