struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Brown <mr...@twdata.org>
Subject Re: referencing spring beans from struts.xml
Date Tue, 12 Dec 2006 19:12:39 GMT
David Durham wrote:
> I don't think my first message was clear, and perhaps the problem is 
> that I really only have a cursory understanding of Struts 2, but my 
> thinking is that if a configuration file in a Java framework has an 
> attribute named "class," then that refers to a Java classname, e.g., 
> com.dave.MyClass.  And, indeed in struts.xml, the class usually does.
>
>   <action name="..." class="com.comp.MyAction" />
>
> but in the spring integration it's:
>
>   <action name="..." class="SpringBeanName" />
>
> This is great.  It works great, SFAIK.  I'm saying that perhaps that 
> shoul be:
>
>   <action name="..." class="Spring:SpringBeanName" />
>
> or something like that to kind of indicate to a developer, "Hey, this 
> isn't a standard java class name."
>
Good point.  I like this idea more because it would allow us to use 
multiple object factories simultaneously.  You know, you should make an 
object factory that parses prefixes to delegate to the proper object 
factory... :)

Don
>
> -DAve
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>


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


Mime
View raw message