I guess I need to map a constant value to my bean, but where do I find that 
constant name?

> -----Original Message-----
> From: Davis, Chad [mailto:chad.da...@emc.com]
> Sent: Wednesday, October 03, 2012 10:55 AM
> To: user@struts.apache.org
> Subject: overriding framework components
> 
> I want to override the framework's built in TextProvider with my own.  I
> understand that I need to add mine as a bean in my strut.xml, but something
> about the precise mechanics is eluding me.
> 
> For starters, this is from struts-default.xml
> 
>    <bean type="com.opensymphony.xwork2.TextProvider" name="xwork1"
> class="com.opensymphony.xwork2.TextProviderSupport" scope="default" />
>     <bean type="com.opensymphony.xwork2.TextProvider" name="struts"
> class="com.opensymphony.xwork2.TextProviderSupport" scope="default" />
> 
> And my struts.xml bean element:
> 
>     <bean type="com.opensymphony.xwork2.TextProvider"
> name="myProvider "
> class="com.mycompany.struts2.MyTextProviderSupport" scope="default" />
> 
> 
> This doesn't appear to get my provider injected into the framework.  What
> am I doing wrong?
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 


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

Reply via email to