Re: Is there a way to call java.lang.String.substring on a c: ou t ?

2002-10-13 Thread Stefan
Hi, I downloaded the source and I made the changes to the StringTagSupport.java as you speficified. Now when I try to use the taglib my Resin gives me this error: java.lang.NoSuchMethodException: org.apache.taglibs.string.SubstringTag.doStartTag() So I looked at the StringTagSupport.java again

Re: Is there a way to call java.lang.String.substring on a c: out ?

2002-10-13 Thread Henri Yandell
Ack. Sorry Stefan. Hadn't noticd this thread becoming a String taglib one. The only problem you should get when commenting out initAttributes should be that the following will happen: [test is an optional attribute] str:foo/ test is default str:foo test=blah/ test is blah str:foo/ test

Beefing up JSTL EL in JSP 2

2002-10-13 Thread James Cook
Lot of acronyms. What is the tie-in between JSP 2.0 and the Expression Language? It seems to have been introduced in a low-power version in the JSTL 1.0 spec, but I am reading that it will support function-type calls when JSP 2.0 is released? Is JSP 2.0 going to include a newer version of JSTL,

Re: Beefing up JSTL EL in JSP 2

2002-10-13 Thread Shawn Bayern
On Fri, 11 Oct 2002, James Cook wrote: What is the tie-in between JSP 2.0 and the Expression Language? It seems to have been introduced in a low-power version in the JSTL 1.0 spec, but I am reading that it will support function-type calls when JSP 2.0 is released? The JSP 2.0 Proposed Final

Re: Beefing up JSTL EL in JSP 2

2002-10-13 Thread Stefan
When are these changes due out ? S - Original Message - From: Hans Bergsten [EMAIL PROTECTED] To: Tag Libraries Users List [EMAIL PROTECTED] Sent: Friday, October 11, 2002 7:51 PM Subject: Re: Beefing up JSTL EL in JSP 2 Shawn Bayern wrote: On Fri, 11 Oct 2002, James Cook wrote:

Re: Is there a way to call java.lang.String.substring on a c: ou t ?

2002-10-13 Thread Stefan
Henri, Thanks for looking into it, I would like to use the string taglib in loops. I just decided recently to finally look at using taglibs. For the last couple of years I have been fine with using %= % that processed bean methods that return strings. But now seeing how many taglibs there are

Re: Beefing up JSTL EL in JSP 2

2002-10-13 Thread Hans Bergsten
Shawn Bayern wrote: On Fri, 11 Oct 2002, James Cook wrote: [...] Will this new, improved EL support reflection-like function calls, and will we be able to: ${mybean.customer(${page.range} * 2)} Yes, though the syntax will work differently from what you have assumed; it will instead look

Re: ExpressionUtil.evalNotNull doesn't return NAE on null value

2002-10-13 Thread Shawn Bayern
On 13 Oct 2002, David M. Karr wrote: In particular, I see that the NullAttributeException is thrown if the expression string was not null, but the resulting value was null. However, if the expression string was null, it just returns null. Shawn, could you explain the motivation for this?

JSTL in Java Was: Is there a way to call java.lang.String.substringon a c: ou t ?

2002-10-13 Thread Henri Yandell
On Sat, 12 Oct 2002, Stefan wrote: I just decided recently to finally look at using taglibs. For the last couple of years I have been fine with using %= % that processed bean methods that return strings. But now seeing how many taglibs there are out there, I decided it was time to jump in.

Re: ExpressionUtil.evalNotNull doesn't return NAE on null value

2002-10-13 Thread David M. Karr
Shawn == Shawn Bayern [EMAIL PROTECTED] writes: Shawn On 13 Oct 2002, David M. Karr wrote: In particular, I see that the NullAttributeException is thrown if the expression string was not null, but the resulting value was null. However, if the expression string was null, it

Release: Standard Taglib 1.0.2

2002-10-13 Thread Shawn Bayern
Jakarta-taglibs users, I've posted version 1.0.2 of the Standard Taglib, our implementation of JSTL. It represents a minor bugfix release: it addresses several minor issues reported to us through the Apache Bug Database. You can download version 1.0.2 at

Re: JSTL in Java Was: Is there a way to call java.lang.String.substring on a c: ou t ?

2002-10-13 Thread Stefan
Henri, Thanks for your comments and contribution of the taglib. Do you anticipate that the bug with the String taglib will be fixed in the near future ? Thanks, Stef - Original Message - From: Henri Yandell [EMAIL PROTECTED] To: Tag Libraries Users List [EMAIL PROTECTED] Sent:

Re: Is there a way to call java.lang.String.substring on a c: out ?

2002-10-13 Thread Henri Yandell
Looking back I see that I can't easily replicate your code. If that has a problem, try using the code snippet I sent to see if that works/doesn't work. Might help to separate the issue from the surrounding code etc. Hen On Sun, 13 Oct 2002, Henri Yandell wrote: On Sat, 12 Oct 2002, Stefan

Re: Is there a way to call java.lang.String.substring on a c: ou t ?

2002-10-13 Thread Stefan
Thanks very much, I will give it a go. Stef - Original Message - From: Henri Yandell [EMAIL PROTECTED] To: Tag Libraries Users List [EMAIL PROTECTED] Sent: Sunday, October 13, 2002 11:02 PM Subject: Re: Is there a way to call java.lang.String.substring on a c: ou t ? On Sat, 12

Re: JSTL in Java Was: Is there a way to call java.lang.String.substring on a c: ou t ?

2002-10-13 Thread Stefan
Hi, I think I found another bug with the String taglib, though probably rarely would this come up. I have found that if I use the substring on more that one element in the JSTL forEach loop where the start and end values are the same with both substring tags I then get the same behaviour as I