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
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
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
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
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
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
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
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
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
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:
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
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-
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'
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
[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
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
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.
--
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
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
(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
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
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
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
: 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
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} /
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
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
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
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
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
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,
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
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
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
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
[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
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
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
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
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.
...
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,
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
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
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)
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
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
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
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:
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
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
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
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
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
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
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`
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
71 matches
Mail list logo