struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Barrows" <jbarr...@sssc.com>
Subject RE: Not possible to attach 2 (or more) parameters from 2 different beans to an html:link?
Date Tue, 06 Jul 2004 16:12:02 GMT


> -----Original Message-----
> From: Robert Bowen [mailto:syg6@yahoo.com]
> Sent: Tuesday, July 06, 2004 8:44 AM
> To: user@struts.apache.org
> Subject: Not possible to attach 2 (or more) parameters from 2 
> different
> beans to an html:link?
> 
> 
> Hello listers. I sent an email about a week ago and haven't 
> heard a blip. So I guess this simply isn't possible? If I 
> have a bean "user" and another "module" and want to attach a 
> property from each to an html:link tag, how do I do it?
>  
> As I understand it if I simply put "paramName" it will 
> include ALL properties for that bean, which I don't need. But 
> if I put "paramName", "paramProperty" and "paramId" twice, 
> once for each bean/property, it only attaches one!

If you use name, then you can just have a map of the params you need.
I have also been known to use forwards, and have the params in the forward definition.  That

assumes that your params can be static.

>  
> Is there some way I can create a "custom" bean ... in the 
> page, put the two properties I need inside it, and pass *it* 
> to the html:link with "paramName" ?
>  
> Sounds kind a less-than.perfect solution. Any takers?
>  
> Thanks,
> syg
> 
> 		
> ---------------------------------
> Do you Yahoo!?
> Take Yahoo! Mail with you! Get it on your mobile phone.
> 

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


Mime
View raw message