--- On Mon, 12/8/08, Raquel Pau Fernández wrote:
> Excuse me for insisting, but the problem of using <s:action> is that 
> you need to offer always it as url... 

Using Codebehind you don't need to configure it via XML; I don't see any 
practical difference between using URLs or classnames to access an action.

> [...] but also perhaps is necessary pass some request or session 
> parameters to this service and they have not been necessary for the
> executed action.

Another reason I think it's a bad idea and more trouble than it's worth. 

IIRC the action tag uses the current value stack (which includes the request 
and session maps) for the action being executed, so (if that's correct) the 
only thing you're asking for is the ability to instantiate the action based on 
its classname rather than a URL?

> Therefore, using Spring or any other IoC framework having 
> Struts2 is unnecessary and you lost a lot of performance [...]

S2 uses (a version of) Guice to do its IoC/DI by default. I also think you're 
over-estimating the performance penalties of Spring (for example).

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to