Re: JSTL Question...

2003-10-13 Thread Daniel H. F. e Silva
Hi Jacob, Try displaytag: http://displaytag.sourceforge.net. It is an amazing piece of code. Regards, Daniel. --- Jacob Wilson <[EMAIL PROTECTED]> wrote: > Hi, > I have a question regarding JSTL. Is there anyway to do sorting of the colums on a > table using > JSTL. > > I know there is one ta

RE: jstl question

2003-09-17 Thread Mark Galbreath
smartass -Original Message- From: Bradley Handy [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 9:44 AM To: Struts Users Mailing List Subject: RE: jstl question Accessors of java.util.Map implementations use a single parameter. Is the instance variable behind the

RE: jstl question

2003-09-17 Thread Bradley Handy
39 AM > To: Struts Users Mailing List > Subject: RE: jstl question > > I don't get it. Accessors for JavaBeans do not use parameters (public > String getValueNum()); mutators use parameters (public void setValueNum( > String param ). Why are you passing an accessor a param ar

RE: jstl question

2003-09-17 Thread Mark Galbreath
I don't get it. Accessors for JavaBeans do not use parameters (public String getValueNum()); mutators use parameters (public void setValueNum( String param ). Why are you passing an accessor a param argument? Nevertheless, if this were a real JavaBean, you would set and get its values in JSTL li

Re: jstl question

2003-09-11 Thread Adam Hardy
Hi Richard, you should ask this on the taglib-user list. If people don't stick to one list, it makes twice as much work to search the archives, which I find a PITA anyway. With my crude knowledge of jstl I would do this: <%=bean.getValueNum(test) %> People on taglibs-user might know a better w

Re: JSTL Question

2003-03-22 Thread David Graham
This is not a JSTL list. Please post your question to http://forum.java.sun.com/forum.jsp?forum=45 David From: "Navjot Singh" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users List" <[EMAIL PROTECTED]> Subject: JSTL Question Date: Sat, 22 Mar 2003

Re: JSTL Question (EL vs. RT + Struts)

2002-11-21 Thread Kris Schneider
Well, for whatever reason, this seemed kind of entertaining (sad, huh?) so I fleshed it out a bit and actually gave it a test run. Since both JSTL and Struts taglibs can deal with a Map (JSTL doesn't have a clue about DynaBeans), that seemed like a better way to go. So, the reflection can be done b

Re: JSTL Question (EL vs. RT + Struts)

2002-11-20 Thread Kris Schneider
Sounds like a job for a beanutils mechanism that does something like (untested): Class clazz = GLOBALS.class; String className = clazz.getName(); Map propMap = new HashMap(); List dynaProps = new ArrayList(); Field[] allFields = clazz.getDeclaredFields(); for (int i = 0, n = allFields.length; i

RE: JSTL Question (EL vs. RT + Struts)

2002-11-20 Thread Karr, David
As long as we're experimenting here :) , you could even have a method that takes a hashmap and a class, and uses reflection to load up all the "static final int" constants into the hashmap. > -Original Message- > From: Karr, David [mailto:[EMAIL PROTECTED]] > > It's a little more verbose,

RE: JSTL Question (EL vs. RT + Struts)

2002-11-20 Thread Karr, David
m wrote: > > > Date: Wed, 20 Nov 2002 15:02:22 -0700 > > From: David Graham <[EMAIL PROTECTED]> > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED] > > Subject: Re: JSTL Question (EL vs. RT + Struts) > > > >

Re: JSTL Question (EL vs. RT + Struts)

2002-11-20 Thread Craig R. McClanahan
On Wed, 20 Nov 2002, David Graham wrote: > Date: Wed, 20 Nov 2002 15:02:22 -0700 > From: David Graham <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Re: JSTL Question (EL vs. RT + Struts) > > But

Re: JSTL Question (EL vs. RT + Struts)

2002-11-20 Thread Eddie Bush
... but can you even do that? Can you use class-static methods without an instance of the class? I've toyed with the idea of adding getters for constants into the Globals class, and then placing an instance of that class into application-scope. What name should a person use though? If you us

RE: JSTL Question (EL vs. RT + Struts)

2002-11-20 Thread Wendy Smoak
>>> But what is the EL expression to get a constant like Constants.MY_KEY? >>There is none. JavaBeans. JavaBeans. JavaBeans. > I see, so I have to do constants.getMyKey(). I guess that's easy enough. What about ? -- Wendy

RE: JSTL Question (EL vs. RT + Struts)

2002-11-20 Thread Karr, David
20, 2002 3:03 PM > To: [EMAIL PROTECTED] > Subject: RE: JSTL Question (EL vs. RT + Struts) > > I see, so I have to do constants.getMyKey(). I guess that's > easy enough. > > David > > >From: "Karr, David" <[EMAIL PROTECTED]> > > > >The

RE: JSTL Question (EL vs. RT + Struts)

2002-11-20 Thread David Graham
I see, so I have to do constants.getMyKey(). I guess that's easy enough. David From: "Karr, David" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subj

RE: JSTL Question (EL vs. RT + Struts)

2002-11-20 Thread Karr, David
There is none. JavaBeans. JavaBeans. JavaBeans. > -Original Message- > From: David Graham [mailto:[EMAIL PROTECTED]] > > But what is the EL expression to get a constant like Constants.MY_KEY? > > David > > >From: "Craig R. McClanahan" <[EMAIL PROTECTED]> > > > >On Wed, 20 Nov 2002, H

Re: JSTL Question (EL vs. RT + Struts)

2002-11-20 Thread David Graham
But what is the EL expression to get a constant like Constants.MY_KEY? David From: "Craig R. McClanahan" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: Re: JSTL Q

Re: JSTL Question (EL vs. RT + Struts)

2002-11-20 Thread Craig R. McClanahan
On Wed, 20 Nov 2002, Hohlen, John wrote: > Date: Wed, 20 Nov 2002 13:14:43 -0600 > From: "Hohlen, John" <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: "Struts-Help (E-mail)" <[EMAIL PROTECTED]> > Subject: JSTL Question (EL vs. RT + Struts) > > My team is star

Re: JSTL Question (EL vs. RT + Struts)

2002-11-20 Thread Kris Schneider
You pretty much need the RT taglibs to get at constants: Quoting David Graham <[EMAIL PROTECTED]>: > You should use the JSTL EL library because of the expression language's > power. These tags replace most of the logic and bean tags from Struts. On > > my projects I only use the struts ht

Re: JSTL Question (EL vs. RT + Struts + nested?? )

2002-11-20 Thread Jeff_Mychasiw
spond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To:[EMAIL PROTECTED] cc: Subject:Re: JSTL Question (EL vs. RT + Struts) You should use the JSTL EL library because of the expression language's power. These tags replace most of the logic and bean tag

Re: JSTL Question (EL vs. RT + Struts)

2002-11-20 Thread David Graham
You should use the JSTL EL library because of the expression language's power. These tags replace most of the logic and bean tags from Struts. On my projects I only use the struts html taglib and the rest is handled with jstl. The constants in JSP issue is tricky and I haven't solved it mysel