[OT] JSTL : test the first char of a String

2004-03-23 Thread nicolas De Loof
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.

Re: [OT] JSTL : test the first char of a String

2004-03-23 Thread nicolas De Loof
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

RE: [OT] JSTL : test the first char of a String

2004-03-23 Thread Pady Srinivasan
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

[OT] JSTL Quick Reference

2004-03-18 Thread Bill Siggelkow
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

Re: [OT] JSTL Quick Reference

2004-03-18 Thread Martin Cooper
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

Re: [OT] JSTL Quick Reference

2004-03-18 Thread Joe Germuska
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:

Re: [OT] JSTL Quick Reference

2004-03-18 Thread Joe Germuska
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

Re: [OT] JSTL Quick Reference

2004-03-18 Thread Bill Siggelkow
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:

[OT] JSTL Primer

2003-10-10 Thread Mark Galbreath
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]

[OT] JSTL Taglib Definition in WEB.XML

2003-10-08 Thread Jerry Jalenak
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

Re: [OT] JSTL Taglib Definition in WEB.XML

2003-10-08 Thread David Graham
--- 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?

RE: [OT] JSTL Taglib Definition in WEB.XML

2003-10-08 Thread Fenderbosch, Eric
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

RE: [OT] JSTL Taglib Definition in WEB.XML

2003-10-08 Thread Carlos Sánchez
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

RE: [OT] JSTL Taglib Definition in WEB.XML

2003-10-08 Thread Fenderbosch, Eric
, 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

Re: [OT] JSTL Taglib Definition in WEB.XML

2003-10-08 Thread Vic Cekvenich
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

[OT] JSTL question

2003-09-11 Thread denis
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

RE: [OT] JSTL question

2003-09-11 Thread Erez Efrati
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

Re: [OT] JSTL question

2003-09-11 Thread Kris Schneider
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

RE: [OT] JSTL question

2003-09-11 Thread Karr, David
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

Re: [OT] JSTL question

2003-09-11 Thread denis
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

RE: [OT] JSTL question

2003-09-11 Thread Kris Schneider
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

Re: [OT] JSTL question

2003-09-11 Thread Kris Schneider
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

Re: [OT] JSTL question

2003-09-11 Thread denis
! 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

Re: [OT] jstl forEach problem

2003-08-31 Thread Johan
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.

[OT] jstl forEach problem

2003-08-30 Thread Johan
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} /

[OT] JSTL

2003-07-09 Thread Kamholz, Keith (corp-staff) USX
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? -

Re: [OT] JSTL

2003-07-09 Thread David Graham
--- 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

RE: [OT] JSTL

2003-07-09 Thread Davidson, Glenn
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

RE: [OT] JSTL

2003-07-09 Thread Alex Shneyderman
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

RE: [OT] JSTL

2003-07-09 Thread Hohlen, John C
, 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

RE: [OT] JSTL

2003-07-09 Thread Micael
: [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

RE: [OT] JSTL

2003-07-09 Thread Stephen Brown
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