struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: JSTL <bean:define> copy translation
Date Thu, 18 Sep 2003 08:54:39 GMT
Try

<c:set var="myVar"><%=JemosConstants.DATA_DDDD %></c:set>
<c:set var="userBean" value="${sessionScope[myVar]}"/>

Adam

On 09/17/2003 08:02 PM seloha . wrote:
> 
> 
> 
> From: "seloha ." <seloha@hotmail.com>
> Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> To: struts-user@jakarta.apache.org
> Subject: JSTL <bean:define> copy translation
> Date: Tue, 16 Sep 2003 12:26:02 +0100
> 
> I am using struts-el and trying to translate the following bean:define 
> (i.e. copy an existing bean) into JSTL with no success:
> 
> <bean:define id="userBean" name='<%= JemosConstants.DATA_USER_DATA %>' 
> type="org.jemos.core.framework.ejbs.valueobject.PeopleValue" />
> 
> JemosConstants.DATA_USER_DATA is a session object.
> 
> The form bean is an org.apache.struts.validator.DynaValidatorForm.
> 
> Any help appreciated, Thanks
> 
> Paul
> 
> _________________________________________________________________
> Find a cheaper internet access deal - choose one to suit you. 
> http://www.msn.co.uk/internetaccess
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> Solution:
> 
> <c:set var="userBean" value="${sessionScope.DATA_USER_DATA}" />
> 
> may need to change scope (e.g. requestScope, etc.) accordingly
> 
> _________________________________________________________________
> Tired of 56k? Get a FREE BT Broadband connection 
> http://www.msn.co.uk/specials/btbroadband
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 

-- 
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


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


Mime
View raw message