Re: Passing taglibs into bean methods.

2002-10-14 Thread Stefan
So does that mean that what I am trying to do can't be done ... I guess so? If that is the case, can you suggest what I can do where I need to rewrite string in the JSP where the string that needs to be rewritten is the result of a JSTL tag? In my example is the string returned from a database qu

Re: Passing taglibs into bean methods.

2002-10-14 Thread Henri Yandell
On Tue, 15 Oct 2002, Stefan wrote: > Hi, > > I have a bean that I use to format text in my JSP pages. The bean contains several >methods that take strings as arguements and then returns a string. > > The following is an attempt to use such a bean method, but it seems the tag is not >passing t

Passing taglibs into bean methods.

2002-10-14 Thread Stefan
Hi, I have a bean that I use to format text in my JSP pages. The bean contains several methods that take strings as arguements and then returns a string. The following is an attempt to use such a bean method, but it seems the tag is not passing the processed result, instead the tag is being pa

Re: Nested tag lib not working.

2002-10-14 Thread Stefan
Thanks, That did it. Stef - Original Message - From: "Hans Bergsten" <[EMAIL PROTECTED]> To: "Tag Libraries Users List" <[EMAIL PROTECTED]> Sent: Tuesday, October 15, 2002 12:06 AM Subject: Re: Nested tag lib not working. > Stefan wrote: > > Hi, > > > > I am attempting to use a few tag

Re: Nested tag lib not working.

2002-10-14 Thread Hans Bergsten
Stefan wrote: > Hi, > > I am attempting to use a few tags in a nested pattern and am getting an error for my >trouble. The inner tag is derived from a database recordset that I am looping over >with a forEach tag: > > ... > > pageContext.setAttribute("r", r); > > ... > > end="${param.begin

odd

2002-10-14 Thread Shawn
Hi, I tried this line and thought I should get the same value but didn't: xx<%= currentRow_questions.get("numb") %>  currentRow_questions is a scripting variable (hashtable) in DbForms (open source rad). However the c:out value was incorrect. Am I just an idiot who can't do simple thing

Nested tag lib not working.

2002-10-14 Thread Stefan
Hi, I am attempting to use a few tags in a nested pattern and am getting an error for my trouble. The inner tag is derived from a database recordset that I am looping over with a forEach tag: ... pageContext.setAttribute("r", r); ... }"/> ... The error: jsp:94: expected `>' at ``$''

Re: Beefing up JSTL EL in JSP 2

2002-10-14 Thread Hans Bergsten
Martin Cooper wrote: > >>-Original Message- >>From: Hans Bergsten [mailto:[EMAIL PROTECTED]] >> >>Shawn is rarely wrong, but here actually missed one detail: >>JSP 2.0 adds >>_functions_ to the EL, but not _methods_ as is used in this example. >>A function is a method on a specific class

Re: [JSTL] fmt tag

2002-10-14 Thread Shawn Bayern
On Mon, 14 Oct 2002, Henri Yandell wrote: > Does JSTL have to limit itself to NumberFormat? No - indeed, it could specify the behavior you're looking for. It's just a question of whether veering from the simple-to-define-and-describe behavior justifies the extra functionality. I'd suggest mail

Re: [JSTL] fmt tag

2002-10-14 Thread Henri Yandell
On Mon, 14 Oct 2002, Shawn Bayern wrote: > > Am I missing something obvious? > > I believe this kind of generalized mathematical rounding is beyond the > scope of NumberFormat, which engages in rounding only when necessitated by > truncation. You can do what you need to do with Math.round() (b

Re: [JSTL] fmt tag

2002-10-14 Thread Shawn Bayern
On Mon, 14 Oct 2002, Henri Yandell wrote: > Has the following been considered: > > > > which outputs 420 > > Doesn't seem to work for me [I had wild hopes] and it seems > surprisingly hard to find a standard way to do this. I can't fathom a > way to do it using NumberFormat, and there's nothi

[JSTL] fmt tag

2002-10-14 Thread Henri Yandell
As this is a suggestion from my using JSTL I thought it'd be better here. Has the following been considered: which outputs 420 Doesn't seem to work for me [I had wild hopes] and it seems surprisingly hard to find a standard way to do this. I can't fathom a way to do it using NumberFormat, and

RE: help conection a pool class (JDBC) and JSTL page.

2002-10-14 Thread Wendy Smoak
> I just buy JST book and I do not find any example that how to do this. I need to use a pool > connection and I have : > IN WEB.XML > > AppListener > ds > > THE class is put undex WEB-INF/class and is: I'm trying to get a ServletContextListener working today as well. My first thought with you

Re: Fwd: question on writing a taglib that uses EL

2002-10-14 Thread Shawn Bayern
On Mon, 14 Oct 2002, Donald Ball wrote: > which is all well and good, but it ties my taglib to the JSTL RI, > which is not the Right Thing to do, I'd think. How do you evaluate > EL's without using the org.apache JSTL RI? Under JSTL 1.0, there is no standard API, so you need to pick an implement

Fwd: question on writing a taglib that uses EL

2002-10-14 Thread Donald Ball
Hi guys. I'm writing a taglib that generates a generic expand/collapsible hierarchical menu widget from a Map of Maps and Strings. I would like my taglib to allow (require?) the user to use EL expessions instead of <%= %> (RT?) expressions in its attributes. From the examples in the JSTL RI, I sup