W dniu 15 lutego 2010 15:15 użytkownik CRANFORD, CHRIS <chris.cranf...@setech.com> napisał: > Lukasz - > > I have configured the bean in struts.xml as follows: > > <bean > type="com.opensymphony.xwork2.TextProvider" > name="seek" > class="com.setech.seek.struts2.i18n.TextProviderSupport" > /> > > Aside from configuring this bean with the tag above, is there any other > settings or changes > I need to make to my struts.xml configuration allowing this provider to > be used when I use <s:text/> and getText() methods?
You have to define your bean as below, to override framework settings: <bean type="com.opensymphony.xwork2.TextProvider" name="xwork1" class="com.setech.seek.struts2.i18n.TextProviderSupport" scope="default" /> <bean type="com.opensymphony.xwork2.TextProvider" name="struts" class="com.setech.seek.struts2.i18n.TextProviderSupport" scope="default" /> And also, are all your actions base on ActionSupport? -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org