struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: html:link with params
Date Tue, 27 Jul 2004 14:16:59 GMT
In the application I'm working on, I actually don't create the map in the 
JSP or the action, I use a getter method in my form bean that constructs 
the map and returns it.  It's very nice and easy, just create the getter 
method, specify the bean name and property in the link tag, and there ya 
go.  I'm sure there are some cases where this wouldn't be the ideal 
solution, but for what I've done, it works wonderfully.
Does this sound like a good way of doing this to everybody else?

Keith Kamholz
IT - Programming and Architecture
Moog Inc.

Nathan Maves <Nathan.Maves@Sun.COM> 
07/26/2004 07:28 PM
Please respond to
Struts Users Mailing List <>

Struts Users Mailing List <>

Re: html:link with params

Think of a case where you have a List of people and you wanted to 
create a link for each person.  I would have to create n# of Maps in 
the Action.  If it was done in something like a forEach loop this could 
be done all at once.  Not sure how good of an example this is :)

On Jul 26, 2004, at 5:16 PM, Wendy Smoak wrote:

> From: "Nathan Maves" <Nathan.Maves@Sun.COM>
>> I know that we can use a Map to achieve this but I hate creating them
>> in a jsp.
> I'm puzzled... why would you create in the JSP instead of in the 
> Action,
> where presumably it wouldn't bother you as much?
> Not that that answers your question, but that part jumped out at me.
> -- 
> Wendy Smoak
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message