You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Martin Gainty <mg...@hotmail.com> on 2007/02/17 03:21:50 UTC

suggested alternatives to struts-plugin

Good Evening All-

The scenario is Spring 1.x framework with normal complement of IOC bells and whistles
A colleague removes the struts-plugin from his project and noticed he lost capability for Action to reach context info from the webapp
Replacing the struts-plugin did work... thankfully
Is/Are there any alternative strategies for a Struts Action class to acquire the webapp context ???

Many Thanks for any suggestions
Martin --
--------------------------------------------------------------------------- 
This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited.
--------------------------------------------------------------------------- 
Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire.

Re: suggested alternatives to struts-plugin

Posted by Laurie Harper <la...@holoweb.net>.
Martin Gainty wrote:
> Good Evening All-
> 
> The scenario is Spring 1.x framework with normal complement of IOC bells and whistles
> A colleague removes the struts-plugin from his project and noticed he lost capability for Action to reach context info from the webapp
> Replacing the struts-plugin did work... thankfully
> Is/Are there any alternative strategies for a Struts Action class to acquire the webapp context ???

Firstly, why would you want to remove the plugin that provides the 
functionality you need, then look for alternatives? Is there some way in 
which the plugin is causing you problems?

If you really do need to go this route, Spring provides utility classes 
for obtaining a reference to the context; you might be able to leverage 
that. Spring2, or course, also supports annotation-driven injection 
which might be more straight-forward.

L.


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