Re: x:transform and body content

2003-09-04 Thread Mark R. Diggory
Yes, that was a foolish re-edit I did before sending the email, in my code it is "default", Thanks. Still, x:transform is picky about the contents of its body even when are both defined. A more logical and powerful behavior would be to allow other jsp tags to be able to exist in the body no m

RE: list size from

2003-09-04 Thread Siggelkow, Bill
the LoopStatus for forEach (specified by the varStatus attribute) exposes the following: index (int) - position of the current item count (int) - number of times thru the loop (starting with 1) first (boolean) - indicator if this is the first iteration last (boolean) - inidicator if this is the

RE: list size from

2003-09-04 Thread Chen, Gin
you can simply set up a var beforehand with the size of the list. Personally I have always used: Look at http://jakarta.apache.org/struts/userGuide/struts-bean.html#size for the syntax that will solve your particular case. Now to reference that you can just use ${foo == #} in you EL tests. -Ti

list size from

2003-09-04 Thread David Chelimsky
Hi. I need to get the size of a list through which I'm iterating via before the last iteration. While I could add a property to my form bean, I wonder if there's a way to access this from the loop status. >From what I've read, the varStatus attribute of the tag exposes an instance of LoopStatus,

RE: using tag to work out if one date is less than another .

2003-09-04 Thread Kris Schneider
Right. Do yourself a favor and spend a few minutes with the JavaBeans spec: http://java.sun.com/products/javabeans/docs/spec.html Specifically, pay attention to sections 8.3 "Design Patterns for Properties" and 8.8 "Capitalization of inferred names". Quoting "Chen, Gin" <[EMAIL PROTECTED]>: > Y

RE: dbtags and tomcat 4.1 --> sql:resultset

2003-09-04 Thread PAZDZIOREK,LUKASZ (HP-Poland,ex1)
Hi Martin, I was using the DBTags and Tomcat 4.1.24 and I encountered the same problem, you described, I have also ancountered some other problems with null values. Please see the answer I received from Morgan Delagrange ([EMAIL PROTECTED]): " If you are using a recent implementation of the Servl

RE: using tag to work out if one date is less than another .

2003-09-04 Thread Chen, Gin
You can access anything that follows JavaBean standards. (get/setXXX)(isXXX)etc. -Original Message- From: Martin Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 9:34 AM To: Tag Libraries Users List Subject: RE: using tag to work out if one date is less than another.

RE: using tag to work out if one date is less than another.

2003-09-04 Thread Martin Smith
Thank-you Kris, works like a dream. Am I right in thinking you can access any property on any object in the expression language as long as the method name begins with 'get'? Martin -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: 04 September 2003 13:31 To: Tag Li

RE: dbtags and tomcat 4.1 --> sql:resultset

2003-09-04 Thread Martin van Dijken
Glenn, Are you saying that the dbtags are "old" tags and therefore do not play nice with JspTag Pooling? Martin > -Original Message- > From: Glenn Nielsen [mailto:[EMAIL PROTECTED] > Sent: donderdag 4 september 2003 14:34 > To: Tag Libraries Users List > Subject: Re: dbtags and tomcat

Re: dbtags and tomcat 4.1 --> sql:resultset

2003-09-04 Thread Glenn Nielsen
Tomcat 4.1 introduced JSP custom tag pooling in the JSP engine. JSP custom tag pooling can improve performance of JSP a great deal but the downside is that it can break older JSP tag libraries which may have bugs when used this way. This may be what you are seeing with DbTags. You can disable JSP

Re: using tag to work out if one date is less than another.

2003-09-04 Thread Kris Schneider
... ... ... ... Quoting Martin Smith <[EMAIL PROTECTED]>: > Hi, > > I'm trying to use the tag to determine if one date is before or > after > another. My code is at the bottom of this email. > > fixture.kickoffDate returns a java.util.Date object. Can I use .time to >

using tag to work out if one date is less than another.

2003-09-04 Thread Martin Smith
Hi, I'm trying to use the tag to determine if one date is before or after another. My code is at the bottom of this email. fixture.kickoffDate returns a java.util.Date object. Can I use .time to get me a long? I realise that I can't put the System.currentTimeMillis code in, but how can I get

RE: writing a custom tag that can use EL

2003-09-04 Thread Karr, David
> -Original Message- > From: Eric W Hauser [mailto:[EMAIL PROTECTED] > > On Wed, 3 Sep 2003, Felipe Leme wrote: > > > - you *have* to add the code that evaluates the expression. > With JSP 2.0 you > > won't need to, it's done automatically > > Although this is obviously a valid point,

Re: dbtags and tomcat 4.1 --> sql:resultset

2003-09-04 Thread Mickael Cappozzo
Hello Martin, I read your problem, we experienced this behaviour also during the testing to understand if I was doing something wrong or not... We checked also the taglibs sources and we didn't find any answers :-( However, we used the same dbtags before under tomcat 4.0 and it worked, but wit

RE: dbtags and tomcat 4.1 --> sql:resultset

2003-09-04 Thread Martin van Dijken
Hey Mickael, I just noticed the exact same thing under totally different circumstances. I posted about it and haven't heard from anybody. Has nobody else had this? I checked the Jakarta-taglibs cvs and it seems the sql:resultset tag is doing everything correctly, although we both know it's not.

dbtags and tomcat 4.1

2003-09-04 Thread Mickael Cappozzo
Hello, We wanted to migrate from tomcat 4.0 to tomcat 4.1.24, but we encoutered the following problem: When a query return nothing, the query's body is displayed on the JSP page if the page contains another query returning something. example: In the table Users, we don't have user with usernam