struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "seloha ." <sel...@hotmail.com>
Subject Re: JSTL <bean:define> copy translation
Date Wed, 17 Sep 2003 18:02:52 GMT



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


Mime
View raw message