struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davis, Chad" <Chad.Da...@emc.com>
Subject RE: overriding framework components
Date Wed, 03 Oct 2012 18:47:18 GMT
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.Davis@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-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 


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


Mime
View raw message