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
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
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
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
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
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
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
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
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,
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)
> >
> >
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
... 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
>>> 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
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
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
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
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
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
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
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
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
21 matches
Mail list logo