[ANNOUNCE] JSP 2.1 and Faces 1.2 Public Review

2005-04-14 Thread Pierre Delisle
We are pleased to announce the availability of the Public Review of the next versions of the specification for JavaServer Pages (JSP) and JavaServer Faces (Faces). JSP 2.1 is developed under JSR-245 and Faces 1.2 is developed under JSR-252. The two expert groups are working ogether to improve

Re: JSTL 1.0 URI vs. JSTL 1.1 URI

2004-11-30 Thread Pierre Delisle
Jason, Make sure your deployment descriptor (web.xml) is servlet 2.4 based, as follows: ?xml version=1.0 encoding=ISO-8859-1? 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

Re: Problems with JSTL stuff

2004-08-06 Thread Pierre Delisle
This alias is for comments on the JSTL specification. For support or usage questions, please use JSTL related lists such as [EMAIL PROTECTED]. Nath, Vikram wrote: Hello Folks, I am facing problems with the JSTL stuff. As soon as i include the following script to import JSTL I get error

Re: Using HTML tags inside scoped variable

2004-06-04 Thread Pierre Delisle
Lukasz, Simply use: c:out value=${ErrorMessage} escapeXml=false/ -- Pierre [EMAIL PROTECTED] wrote: Hello, Is it possible to keep a string with HTML tags inside a scoped variable. I am trying to do something like: c:set var=ErrorMessage scope=page Message text... bc:out

Re: Adding attributes to an XML element in JSTL

2004-05-12 Thread Pierre Delisle
Murray, OK, so I can settle (grudgingly) for writing/finding another XML tag library that can actually manipulate XML. The shame of it is that if I want to also use the JSTL tags (which I like very much) then I'll have to duplicate all of my XPath expressions and context variables for the new

Re: Adding attributes to an XML element in JSTL

2004-05-12 Thread Pierre Delisle
Murray, Are you saying that if I want to get user input (from a form) into XML for a back-end system then JSP is not suitable?. I can't accept that. I could use Struts (which seems like overkill), or write a tag library that took all of the form values and spat out w3c.dom.Document, but any

Re: Standard-example

2004-04-13 Thread Pierre Delisle
My question is: where is ${customers} decalerade or got the values!!! This is explained at the bottom of the home page for standard-examples: Infrastructure The source code for the JSTL examples includes class startup.Init to initilialize the objects used in the examples. This allows us to mimic

Re: Replacing returns with br

2004-04-13 Thread Pierre Delisle
Not very intuitive, but the following should work: c:set var=s5 value=First line\nSecond line/ c:out value=${fn:replace(s5,'\\\n','br')} escapeXml=false/ -- Pierre Keith wrote: I have a column in a database that is used to store a comments section. It's just a large string

Re: ANN: JSTL Quick Reference

2004-03-19 Thread Pierre Delisle
Bill, Great job! Thanks for the contribution. All feedback is most appreciated... The URIs you provide are the ones for JSTL 1.0. You may want to clarify that the URI is different depending on whether you use JSTL 1.0 or 1.1. [The URI specified for EL functions should only be the 1.1 flavor

Re: JSTL 1.1 jaxp problem (under tomcat 5.0.19/java 1.4.2_03)

2004-03-16 Thread Pierre Delisle
Yes, as Kris mentioned, please file a bug report with proper test cases. We'll have a look into it. -- Pierre Kris Schneider wrote: You're posting to the right place to make people aware of the problem. To formalize the issue, a bug report should probably get submitted:

Re: maven repository

2004-02-27 Thread Pierre Delisle
Taglibrary developers: This is an excellent example of how to take advantage of the new Apache Maven Repository. Taglibs Developers, how about publishing your taglibrary jars into the Maven Repository under /dist/java-repository. They'll get updated onto ibiblio.org/maven within 4 hours for

Re: JSTL fmt:formatDate bug ???

2004-02-26 Thread Pierre Delisle
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-

Re: JSTL fmt:formatDate bug ???

2004-02-25 Thread Pierre Delisle
Riaan Oberholzer wrote: Actually fmt:formatDate value=${row.TIME} timeZone=%= Constants.TIMEZONE % pattern=dd-MM- 'at' HH:mm/ does not work fmt:formatDate value=${row.TIME} timeZone=Europe/London pattern=dd-MM- 'at'

Re: how to use methods with parameters

2004-02-05 Thread Pierre Delisle
is it possible to use JSTL for an expression like %=calculateDays(startDate, endDate) % ??? probably not, but I am too new to JSTL to figure it out by myself. Could someone advise me? This could be possible through an EL function (introduced in JSP 2.0). The syntax would be as follows:

Re: Problems with JSTL 1.1 and Tomcat 5 : UnresolvableException: $prefix:javax.servlet.include.query_string

2004-02-04 Thread Pierre Delisle
To make things easier, make sure you run Tomcat using J2SE 1.4.2. You can find the details at: http://jakarta.apache.org/taglibs/doc/standard-doc/standard/GettingStarted.html -- Pierre Aadi Deshpande wrote: Hi, I'm tryin to use Tomcat 5 and the newly released JSTL 1.1 and I get the

Announcing standard-1.1.0 and standard-1.0.5

2004-01-30 Thread Pierre Delisle
The Jakarta-Taglibs team is proud to announce two new releases of the standard tag library, an implementation of the JSP Standard Tag Library (JSTL). standard-1.1.0 First official release of our implementation of the JSTL 1.1 specification (JSR-052). Requires a minimum of a

Re: Getting web app context?

2004-01-08 Thread Pierre Delisle
Since you tried c:url value=Action.do/, and said it did not work... It would also work with the following: c:url value=/Action.do var=url1/ c:url value=Foo.do var=url2 c:param name=_doneURI value=${url1}/ /c:url a href='c:out value=${url2}/'Link/a Your URL has to start with / to have the

Re: XML processing with target namespace documents

2004-01-08 Thread Pierre Delisle
That should tell you why this does not work. http://marc.theaimsgroup.com/?l=taglibs-userm=103723631220244w=2 And no, the expert group did not come to a concensus on this for JSTL 1.1 and this will have to be tackled in JSTL.next. -- Pierre Kralidis,Tom [Burlington] wrote: Hi, We've been

Re: Serialising javax.servlet.jsp.jstl.sql.ResultImpl

2003-12-17 Thread Pierre Delisle
I checked with the gurus, and the conclusion is as expected: while having ResultImpl implement interface Serializable exposes a portability issue, it shouldn't be a spec violation. I therefore suggest we fix ResultImpl to implement interface Serializable, and insert a comment in the Release

Re: Serialising javax.servlet.jsp.jstl.sql.ResultImpl

2003-12-16 Thread Pierre Delisle
Ideally, javax.servlet.jsp.jstl.sql.Result should be spec'ed as implementing the Serializable interface, so serialization is not left up to the implementor of the spec but is consistently applied across all implementations of the spec. We'll make sure this is fixed in the next rev of the spec. In

Re: Simple question, taglibs on eclipse-specific

2003-10-20 Thread Pierre Delisle
Manos, What you're doing seems correct. To make sure there is no typo anywhere, why don't you just try a simple webapp with tomcat 5 only. If it works, then there's definitely a problem with eclipse and I'd suggest you try an eclipse support list. -- Pierre Manos Papantoniou wrote: I have a

Re: iterator problem

2003-10-20 Thread Pierre Delisle
David Liles wrote: I am trying to use the iterator tag and am unclear on a couple items. I have been using the following example as a template: iter:forCategories var=athlete items=${athletes} iter:category value=${athlete.country} iter:header h3c:out

Re: Feature request in c:url?

2003-10-07 Thread Pierre Delisle
Jeroen, This issue was first raised by Andreas in bug #23319. (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23319) I've brought it up to the expert group and it will, as mentioned by Martin, require a change to the spec. I've just added a comment to that bug stating that unfortunately the

Re: c:import: relative links inside WEB-INF don't work

2003-10-07 Thread Pierre Delisle
Manolo Ramirez T. wrote: Hi, I'm using jsp's outside WEB-INF to include prueba and prueba1, I forget to say that. In that case, you'd want the following: %@ taglib uri=http://java.sun.com/jstl/core; prefix=c % c:import url=WEB-INF/prueba2.jsp/ -- Pierre _ Manolo Ramirez

Re: Having trouble with Multiple namespaces reading XML source

2003-10-07 Thread Pierre Delisle
Gavin, I cannot talk for the xtags taglib, but for the xml tags of the standard taglib (implementation of JSTL), you have to make sure you access properly a specific node by referring to its namespace using the name() and namespace-uri() functions in XPath. You may want to check that thread in

Re: difference between Standard and standard 1.0

2003-10-02 Thread Pierre Delisle
deepaksawdekar wrote: On apache site there are two down loads for standard tag libs . standad and standard 1.0 whats the difference between these two . If you click on each one of those links, the answer is right there. And to understand the difference between JSTL 1.0 and JSTL 1.1, please check

Re: JSTL character encoding

2003-09-29 Thread Pierre Delisle
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

Re: standard-1.0.4 and standard-1.1.0-B1 now available

2003-09-26 Thread Pierre Delisle
that there is now an early access of the JSTL 1.1 implementation. Where can I get the specification? I could not find it anywhere. Regards, Andreas Pierre Delisle wrote: The Jakarta-Taglibs team is proud to announce two new releases of the standard tag library, an implementation of the JSP

Re: fmt:param not working as expected...

2003-09-26 Thread Pierre Delisle
From bug #14590: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14590 ... This is not a bug in JSTL, but a peculiarity of how a single quote is interpreted by java.text.MessageFormat. For more details, you may want to check bug reports 4293229 and 4321513 in the java bug database

Re: Issue with formatDate tags

2003-09-10 Thread Pierre Delisle
[Please note this has also been added as a comment to bug 22892.] The behavior of the formatting tags is in accordance with the JSTL spec. With respect to the following exception: java.lang.IllegalStateException: Response is already committed! the spec clearly states in section 8.4 that: This

Re: According to TLD or attribute directive in tag file, attribute test does not accept any expression

2003-09-06 Thread Pierre Delisle
Hi Rick, Hummm, a JSTL 1.0 based webapp should run unchanged on a JSP 2.0 container. All details on backwards compatibility are provided in the new JSTL 1.1 spec, appendix A (see http://java.sun.com/jstl). Please have a look, and send me simple war files that reproduce your problem(s). The

Re: writing a custom tag that can use EL

2003-09-03 Thread Pierre Delisle
Adam Hardy wrote: Does J2EE 1.4 include JSP2.0? Yes. Is JSTL part of JSP2.0? No. JSTL 1.1 is the version that synchronizes with JSP 2.0. JSTL 1.0 requires at least a JSP 1.2 container. JSTL 1.1 requires at least a JSP 2.0 container. JSTL is not currently part of the J2EE platform. --

Re: writing a custom tag that can use EL

2003-09-03 Thread Pierre Delisle
Felipe Leme wrote: Pierre, Now that you mention it, is there any plans to officially include it on J2EE1.4? JSTL 1.1 is bundled with the J2EE 1.4 RI (Reference Implementation), but it is not part of the J2EE platform per se. I think JSTL is not in the current J2EE 1.4 specification, even

Re: a question about jstl1.1

2003-08-28 Thread Pierre Delisle
lieutenant wrote: Hi, i want to synchronize the source(in development) of jstl1.1 RI ,Is the cvs address this: CVS_HOME: :pserver:[EMAIL PROTECTED]:/home/cvspublic jstl_dir: jakarta-taglibs/standard Yes. -- Pierre - To

Re: forTokens problem

2003-06-10 Thread Pierre Delisle
(so it works like in Java)? Howard, I agree this would make more sense (and it is not clear to me why we did not do it this way in the first place). At any rate, I've added this to the TODO list for JSTL.next. Thanks, -- Pierre Howard -Original Message- From: Pierre Delisle [mailto

Re: forTokens problem

2003-06-06 Thread Pierre Delisle
Howard Lin wrote: I'm trying to use c:forTokens to parse a string, using \n as the delimiter and it seems it doesn't work. The jsp code is like this: c:forTokens items=my_string delims=\n var=foo tdc:out value=${foo}//td /c:forTokens ${foo} shows the whole entire string instead of the

Re: forTokens problem

2003-06-06 Thread Pierre Delisle
Howard Lin wrote: I'm trying to use c:forTokens to parse a string, using \n as the delimiter and it seems it doesn't work. The jsp code is like this: c:forTokens items=my_string delims=\n var=foo tdc:out value=${foo}//td /c:forTokens ${foo} shows the whole entire string instead of the

Re: Accessing scope attributes with dotted names using JSTL

2003-06-06 Thread Pierre Delisle
Serge Knystautas wrote: Steve Raeburn wrote: Thanks, but that's not what I'm trying to accomplish. It's very common to place beans into session or application scopes with names such as org.apache.struts.action.ACTION_MESSAGE. This is similar to the Java package naming convention and

Re: JSTL Defined Methods

2003-05-31 Thread Pierre Delisle
: float to int conversion using EL; also how we can use ceil(), floor(), ... Date: Thu, 22 May 2003 11:06:04 -0700 From: Pierre Delisle [EMAIL PROTECTED] Reply-To: Tag Libraries Users List [EMAIL PROTECTED] To: Tag Libraries Users List [EMAIL PROTECTED] References: [EMAIL PROTECTED] [EMAIL PROTECTED

Re: Inline if

2003-05-31 Thread Pierre Delisle
Jon, The conditional operator is very useful, not just in obscure uses :-). It has been added to the EL in JSP 2.0. -- Pierre Jon Archer wrote: Am I right in thinking there's no way to condense: c:choose c:when test=${someBean.someProperty == someValue} c:out value=${option1} /

Re: Unable to load class

2003-04-12 Thread Pierre Delisle
Try with the following taglib directives instead: %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % %@ taglib prefix=sql uri=http://java.sun.com/jsp/jstl/sql; % -- Pierre Mike Steigerwald wrote: Hi, all, I'm new to taglibs, and relatively new to java, so maybe this really isn't

Re: breaking out of c:forEach

2003-04-12 Thread Pierre Delisle
Carole, You may want to check the archive of this list at http://archives.apache.org/eyebrowse/SummarizeList?listId=44 Do a search on break and you'll get a lot of information on the topic. -- Pierre Carole Mah wrote: How would one break out of a c:forEach? For example, in a regular

Re: why the jstl didn't work :(

2003-03-31 Thread Pierre Delisle
If you've downloaded the nightly recently, the URI for core (and all other taglibs) in JSTL 1.1 has changed to: http://java.sun.com/jsp/jstl/core http://java.sun.com/jsp/jstl/fmt ... Sorry for the inconvenience... -- Pierre joni santoso wrote: Hi, I have downloaded jakartataglib and

Re: JSTL error

2003-03-14 Thread Pierre Delisle
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

Re: Tag libraries that use ExpressionEvaluator depend on Jakartaimplementation

2003-03-10 Thread Pierre Delisle
David M. Karr wrote: This is probably obvious, but it is the case that any tag libraries that use the ExpressionEvaluator class in the Jakarta JSTL implementation are actually dependent on the Jakarta implementation, as opposed to the specification, correct? Yes this is correct, as mentioned

Re: Date value now

2003-03-03 Thread Pierre Delisle
David Goodenough wrote: In an early version of JSTL (one prior to proper release) I seem to recall that leaving the value out of a fmt:formatDate tag defaulted to using the value of now as the time/date to format. This seems to have vanished from the released version. Firstly why the change,

Re: fmt:parseNumber

2003-02-24 Thread Pierre Delisle
Eddie Barna wrote: I thought it would be fun to use JSTL for some form validation instead of Javascript. I am trying to make sure a user only enters numbers in a field called AcctNum. Also i decided to use fmt:parseNumber / to test my field. Here's the code: c:catch var=parsingError

Re: Problem with empty key word on a collection.

2003-02-13 Thread Pierre Delisle
Henri Yandell wrote: On Thu, 13 Feb 2003, Schnitzer, Jeff wrote: From: Shawn Bayern [mailto:[EMAIL PROTECTED]] Why not implement the empty keyword on all collections? The method isEmpty is available in the Collection interface. Was there some sort of argument against that when the

Re: accessing static fields/methods from a static class using jstlel

2003-02-05 Thread Pierre Delisle
Henri, Not being able to use static properties is a bit crappy. Who do we go kick to get them? JSTL JSR? Shawn? JSP JSR? As of JSP 2.0/JSTL 1.1, the Expression Language is owned by the JSP spec. The above issue as well as support for method invocation in the EL has been the center of hot

Re: c:if and boolean value

2003-02-05 Thread Pierre Delisle
Try the following: c:if test=${mapservice.running} [What Timothy suggested would also work, but there is no need to test against true, since you already have a boolean expression for your test.] -- Pierre Timothy Kettering wrote: offhand, id say you should be doing this. (enclose

Re: Non Java Developers, programmers using JSTL and taglibs

2003-02-04 Thread Pierre Delisle
[EMAIL PROTECTED] wrote: Hello- Forgive my comments as they are not technical. Just observations I have made on a few projects over the past couple months. Since there are very few java programmers who are designers, and vice versa - there must be a comfortable zone where

Re: Non Java Developers, programmers using JSTL and taglibs

2003-02-04 Thread Pierre Delisle
Renick, Garrel wrote: This is an interesting topic, and people obviously have strong opinions about successes and failures at using this technology within their work environments. My viewpoint is that JSTL provides a nice set of features that most page designers with some programming

Re: problems with fmt:setLocale

2003-02-04 Thread Pierre Delisle
Before I look more deeply into bug 16751 submitted by Pere that seems to be related to what Alberto and Pablo have been experimenting in the past, could someone translate the important points of the email sent by Pablo on that topic. I'd think that funcionaba correctamente means that it works

Re: FW: BUg in forEach tag of JSTL

2003-01-23 Thread Pierre Delisle
Vishal, Many people in this community are willing to help you, but there are a few things you should know that will make it easier to get the support you are looking for. 1. Send questions to the proper alias Please post your questions/comments related to jakarta-taglibs to [EMAIL

Re: fmt:message texts does not change when changing browser language?

2003-01-22 Thread Pierre Delisle
Fredrik Westermarck wrote: Johan Ekman wrote: However this does not seem a plausible solution. Has anyone else encountered this problem ? If you are using Tomcat 4.1.x disable the tagpooling in $CATALINA_HOME/conf/web.xml by setting enablePooling to false for the JspServlet. ...

Re: problems with fmt:setLocale

2003-01-03 Thread Pierre Delisle
Pablo, Paul, There were a few bugs related to tag-reuse and the formatting tags. I'd suggest using the nightly build and see if the problems persist. Please do let us know whatever the outcome is; we really want to fix these problems. Thanks, -- Pierre Paul Campbell wrote: Hola Pablo,

Re: Dynamically generating the xpath for x:out

2002-12-16 Thread Pierre Delisle
See section 11.1.2 of the spec, and try the following: x:out select=$doc//blog/blog-entry[@id=$param:article]/@title/ Remember that in a 'select' attribute, the language used is XPath, not the EL. -- Pierre Mike Bowler wrote: Jakarta Standard Taglib version 1.0.2 I have the

Re: JSTL

2002-12-11 Thread Pierre Delisle
The JSP Standard Tag Library was first called JSPTL when it was in Early Access. The name was later changed to be JSTL. This is the same JSP spec. (see JSR-052 at www.jcp.org, or see http://java.sun.com/products/jsp/jstl) -- Pierre Christian Avril wrote: In my question , there is no

Re: fmt:setLocale Revisited

2002-12-05 Thread Pierre Delisle
John Sessler wrote: Hello All, I am experiencing the same problem described by someone else in Oct. however, the solutions suggested do not work for me. When compiling a page with the fmt:setLocale tag the compiler reports the following error message: error:null(-1,-1)

Re: Transactions with dbTags

2002-11-22 Thread Pierre Delisle
Xose, You might want to check the 'sql' tags in JSTL. They provide transaction support. JSTL is implemented in the 'standard' project. See http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html -- Pierre Xose Ramon Sousa Vazquez wrote: I am working with dbTags and PostgreSQL. I'd

Re: Taglibs to provide an abstraction for mobile device guis

2002-11-22 Thread Pierre Delisle
Are there any taglibs out there that provide an abstraction layer for PDA device displays? An example of such would be the Microsoft ASP.NET mobile controls. The controls will properly render the gui widgets on about 200 devices ... JavaServer Faces, currently being defined in JSR-127, should

ApacheCon US 2002

2002-11-13 Thread Pierre Delisle
I will be at ApacheCon next week in Las Vegas. Besides providing great technical sessions and bofs, ApacheCon is a great opportunity to meet members of our community. So if you are going to be there, please let me know. I'd like to organize a small gathering if there is interest within the

Re: Tag for uploading

2002-11-06 Thread Pierre Delisle
Stefan wrote: ... Is there a tag for uploading of files in JSTL? No. You may want to check the html:file tag in struts. -- Pierre -- To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org For additional commands, e-mail:

Re: sql, choose and scope

2002-11-01 Thread Pierre Delisle
I suspect the body of the when clause is not executed because its condition evaluates to false. You should print the value of param.sqlRequest prior to the c:choose to make sure it has the value 1. -- Pierre Lorenzo Sicilia wrote: A problem about scope: my script c:choose

Re: JSTL and sort ordering of the item in the Result object.

2002-10-09 Thread Pierre Delisle
Stefan wrote: My previous email was a little too vague so I will try again. I am populating a JSTL Result object with a cached Rowset derived from a bean method like so: Result r = ResultSupport.toResult(dataBase.getAllUsers()); pageContext.setAttribute(r, r); I then loop though the

Re: Capturing Outputted Content

2001-08-09 Thread Pierre Delisle
Stacy Young wrote: Hi All ! I'm a newbie! Would like to know if there's a tag that can capture any JSP generated content within it's borders and make a variable available with the result of this content for use somewhere else on the page ?! One should be available soon (within 3-4

Re: hi

2001-06-15 Thread Pierre Delisle
There is an excellent book dedicated to Tag Libraries that just came out: JSP Tag Libraries Gal Shachor, Adam Chace, Magnus Rydin May 2001, Softbound, 656 pages ISBN 193011009X You can get the details at

Re: misc JDBC tags notes (was: Re: colName should be case insensitive?)

2001-04-23 Thread Pierre Delisle
Pierre, how is the dashboard proposal coming? Slow. Thought I'd have some time last week, but focus is really on JSR-052 (so standard taglibs come out one day :-)). Can't promise anything until JavaOne :-( -- Pierre

Re: Parameters in include tag

2001-03-28 Thread Pierre Delisle
Manuel Alzola wrote: Hello. Im using the include tag to put the output of a servlet into a jsp page. It works fine but I also need to put some parameters in the request. Is there a nested tag to let me do this? Is there any other way to accomplish it? You may use: jsp:include

Re: [PATCH] building too hard!

2001-03-07 Thread Pierre Delisle
Jeff Turner wrote: How about using the preset CLASSPATH as a fallback, to be relied on only after printing a dire warning? Eg, one could have the following system (taking Ant as an example): if $ANT_JAR set `$ANT_JAR` exists: use it elseif $ANT_HOME set `$ANT_HOME/lib/ant.jar`

Re: Is it legal to have multiple taglib setter methods for the same property

2001-02-07 Thread Pierre Delisle
Alex, Until the expert group rules on this, one workaround (that will always work) is to simply do the following (assuming a property of type Object): instead of: mytags:foo bar="abc"/ use: mytags:foo bar='%="abc"%'/ Another way is to define a PropertyEditor associated