struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Law <andy....@roslin.ed.ac.uk>
Subject RE: Some Spring/Struts questions
Date Wed, 12 May 2010 11:43:13 GMT



James Cook-13 wrote:
> 
> In the past I have done this for accessing beans in a servlet.
> 
> <bean
> class="org.springframework.web.context.support.ServletContextAttributeEx
> porter">
> 	<property name="attributes">
> 		<map>
>                 <entry key="organisationService"
> value-ref="myOrganisationServiceBeanRef"/>
>              </map>
>       </property>
> </bean>
> 
> OrganisationService organisationService = (OrganisationService)
> getServletContext().getAttribute("organisationService");
> 


OK. Thanks. I'll try that.

Is it possible though to use Spring to push objects onto the Struts OGNL
stack? That would be neater?

Later,

Andy
-- 
View this message in context: http://old.nabble.com/Some-Spring-Struts-questions-tp28533505p28534868.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message