You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Balakrishnan, Vijay" <Vi...@acs-inc.com> on 2003/02/11 22:07:02 UTC

HI,

I have used the following:
<bean:define id="medKey" name="searchResult" property="lastName" />

I want to be able to concatenate 2 of these properties from the bean into
the "medKey".

i.e. combine last name and firstname into "medKey' with a bean:define and
then use the variable. 
<bean:define id="medKey" name="searchResult" property="lastName" />
<bean:define id="medKey" name="searchResult" property="firstName" />


TIA,
Vijay

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


Re: Posted by James Mitchell <jm...@apache.org>.
Have you tried?

<bean:define id="medKey">
<bean:write name="searchResult" property="lastName"/>
<bean:write name="searchResult" property="lastName"/>
</bean:define>







--
James Mitchell





----- Original Message ----- 
From: "Balakrishnan, Vijay" <Vi...@acs-inc.com>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
Sent: Tuesday, February 11, 2003 4:07 PM
Subject: <bean:define concatenation


> HI,
> 
> I have used the following:
> <bean:define id="medKey" name="searchResult" property="lastName" />
> 
> I want to be able to concatenate 2 of these properties from the bean into
> the "medKey".
> 
> i.e. combine last name and firstname into "medKey' with a bean:define and
> then use the variable. 
> <bean:define id="medKey" name="searchResult" property="lastName" />
> <bean:define id="medKey" name="searchResult" property="firstName" />
> 
> 
> TIA,
> Vijay
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 


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