struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkamh...@moog.com
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 <user@struts.apache.org>


To
Struts Users Mailing List <user@struts.apache.org>
cc

Subject
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 :)

Nathan
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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

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