Hello,
I'm using JSTL and Struts-EL. I would like to test the first char of a
String.
The string is a URL, and can be a path to some action on my webapp or
any external URL.
I'd like to test if the url starts with '/' to select the html:link
attriibute to use : page or href.
I've found this way :
c:if test=${link.bytes[0] eq '/'.bytes[0]}
Not so pretty, but working !
Nico.
nicolas De Loof a écrit :
Hello,
I'm using JSTL and Struts-EL. I would like to test the first char of a
String.
The string is a URL, and can be a path to some action on my webapp or
any
c:if test=${fn:startsWith(url, '/')}
Thanks
-- pady
[EMAIL PROTECTED]
-Original Message-
From: nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 11:12 AM
To: Struts Users Mailing List
Subject: [OT] JSTL : test the first char of a String
Hello,
I'm using JSTL
It seems that there is demand for a JSTL Quick Reference. When I was
learning JSTL a couple of months ago I put together such a document and
I thought others might find it of use. It can be downloaded from
http://www.jadecove.com/jstl-quick-reference.pdf. The only downside
about the
Not in the quick-ref format, but not much longer (20 pages vs 13 pages:
http://www.manning-source.com/books/bayern/bayern_apxA.pdf
I've been using that as a quick-ref since the book it's from (JSTL In
Action) was published.
--
Martin Cooper
Bill Siggelkow [EMAIL PROTECTED] wrote in message
At 2:42 PM -0800 3/18/04, Martin Cooper wrote:
Not in the quick-ref format, but not much longer (20 pages vs 13 pages:
http://www.manning-source.com/books/bayern/bayern_apxA.pdf
I have been pining for a long time for good online JSTL doc; I
recently discovered this:
At 4:59 PM -0600 3/18/04, Joe Germuska wrote:
It would be pretty cool to use the tlddoc tool to build Struts TLD doc.
https://tlddoc.dev.java.net/
whoops; they moved: https://taglibrarydoc.dev.java.net/
--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
Imagine if
Thanks Joe -- I was not aware of that page. Shawn definitely wrote the
definitive book on JSTL -- I thought it was great -- (particularly the
subtle joke about Clinton :) -- I did my desktop guide just to give me
something a little smaller and quicker than the appendix.
Joe Germuska wrote:
http://today.java.net/pub/a/today/2003/10/07/jstl1.html
Mark
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
All,
After reading the JSTL docs on the Jakarta web site, and googling for about
an hour, I can't seem to find a answer. So, for all of you JSTL guru's out
there, here's the question:
In WEB.XML, do I need to specify the '-rt' taglibs? In other words,
do I need both of these, or only
--- Jerry Jalenak [EMAIL PROTECTED] wrote:
All,
After reading the JSTL docs on the Jakarta web site, and googling for
about
an hour, I can't seem to find a answer. So, for all of you JSTL guru's
out
there, here's the question:
In WEB.XML, do I need to specify the '-rt' taglibs?
Users Mailing List
Subject: Re: [OT] JSTL Taglib Definition in WEB.XML
Neither. The great thing about Servlet 2.3 is that you don't need taglib
declarations in web.xml. Just drop the jar into WEB-INF/lib and use the
standard uri in your JSPs like this:
%@ taglib uri=http://java.sun.com/jstl/core
The URI is only used to identify the taglib, no internet lookups are made.
-Mensaje original-
De: Fenderbosch, Eric [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 08 de octubre de 2003 17:09
Para: Struts Users Mailing List
Asunto: RE: [OT] JSTL Taglib Definition in WEB.XML
, October 08, 2003 11:14
To: 'Struts Users Mailing List'
Subject: RE: [OT] JSTL Taglib Definition in WEB.XML
The URI is only used to identify the taglib, no internet lookups are made.
-Mensaje original-
De: Fenderbosch, Eric [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 08 de octubre de
1.3 / Servlet 2.3 spec. Could that be what is going on here?
-Original Message-
From: Carlos Sánchez [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 11:14
To: 'Struts Users Mailing List'
Subject: RE: [OT] JSTL Taglib Definition in WEB.XML
The URI is only used to identify
Ok, i have a map named selectBox that contains a number of ArrayLists keyed by strings.
When I try to iterate over it, nothing happens!
c:out value=${selectBox[prop.key]}/
Shows something of the order [ java.com.blah.bean, java.com.blah.bean,
java.com.blah.bean]
c:out
You need to put loop.COUNT :
c:out value=${selectBox[prop.key][loop.count].key}/
Erez
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 9:50 PM
To: Struts Users Mailing List
Subject: [OT] JSTL question
Ok, i have a map named
varStatus gives you an instance of javax.servlet.jsp.jstl.core.LoopTagStatus. It
has a property called index that might be of interest...
Quoting [EMAIL PROTECTED]:
Ok, i have a map named selectBox that contains a number of ArrayLists keyed
by strings.
When I try to iterate over it, nothing
Actually, in this case, loop.index is probably more appropriate. They
are similar, but different.
-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 1:54 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] JSTL question
You need
Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 3:59 PM
Subject: RE: [OT] JSTL question
Actually, in this case, loop.index is probably more appropriate. They
are similar, but different.
-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent
value=${selectBox[prop.key][loop.count].key}/
Erez
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 9:50 PM
To: Struts Users Mailing List
Subject: [OT] JSTL question
Ok, i have a map named selectBox that contains a number
is
aa
So, what is wrong there?
- Original Message -
From: Karr, David [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 3:59 PM
Subject: RE: [OT] JSTL question
Actually, in this case, loop.index is probably more
!
My god. Sometimes it really helps having another pair of eyes.
Thank you.
- Original Message -
From: Kris Schneider [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 4:04 PM
Subject: Re: [OT] JSTL question
Closing tag too early
Solved.
I added instead of a workDocument the collection workDocuments to my
Arraylist. Just a typo
Johan
Johan wrote:
Hi,
I have a JSTL question and the answers in the archives don't solve the
problem. So maybe one of you run into the problem ones
I have an ArrayList containing Objects.
Hi,
I have a JSTL question and the answers in the archives don't solve the
problem. So maybe one of you run into the problem ones
I have an ArrayList containing Objects.
c:forEach var=document
items=${sessionScope.user.session.workDocuments}
c:out value=${document.carBrand.name} /
I apologize if this is a bit off topic, and if it is a bit of a newbie
question.
I've never used JSTL before, and I'm not sure exactly what it is. Is it
built into standard JSP technology (thus usable without any add-ons), or is
it a tag lib that you have to download and put in your project?
-
--- Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] wrote:
I apologize if this is a bit off topic, and if it is a bit of a newbie
question.
I've never used JSTL before, and I'm not sure exactly what it is. Is it
built into standard JSP technology (thus usable without any add-ons), or
is
I too am a bit of a newbie and have the same question plus where can we find
good documentation on JSTL?
Thanks
Glenn
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 9:48 AM
To: Struts (E-mail)
Subject: [OT] JSTL
I
Did you try www.javasoft.com ?
-Original Message-
From: Davidson, Glenn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 11:08 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] JSTL
I too am a bit of a newbie and have the same question plus where can
we
find
good
, 2003 10:08 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] JSTL
I too am a bit of a newbie and have the same question plus where can we find
good documentation on JSTL?
Thanks
Glenn
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday
: [OT] JSTL
I too am a bit of a newbie and have the same question plus where can
we
find
good documentation on JSTL?
Thanks
Glenn
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 9:48 AM
To: Struts (E-mail)
Subject
There is the odvious spec doc, which is pretty good...
ftp://ftp.java.sun.com/pub/spec/jstl/enov1818/jstl-1_0-fr-spec.pdf
steve
-Original Message-
From: Micael [mailto:[EMAIL PROTECTED]
Sent: July 9, 2003 12:01 PM
To: Struts Users Mailing List
Subject: RE: [OT] JSTL
32 matches
Mail list logo