This action cause an error.
I will write in struts.xml:
<struts>
  
  <constant name="struts.enable.DynamicMethodInvocation" value="false" />
  
  <bean type="com.opensymphony.xwork2.TextProvider" name="xwork1"
class="karakas.struts.RicoTextProvider" />
  <bean type="com.opensymphony.xwork2.TextProvider" name="struts"
class="karakas.struts.RicoTextProvider" />
  <!-- Add packages here -->
  .....
</struts>

and use the same type(com.opensymphony.xwork2.TextProvider) and the same
name(struts) as in struts-defailt.xml 
 Then i recieve an error in tomcat log: 


Unable to load bean: type:com.opensymphony.xwork2.TextProvider
class:karakas.struts.RicoTextProvider - bean -
/web/WEB-INF/classes/struts.xml:10:109

Caused by: Bean type interface com.opensymphony.xwork2.TextProvider with the
name xwork1 has already been loaded by [unknown location] - bean -
file:/D:/projects/Karakas1.1/build/web/WEB-INF/classes/struts.xml:10:109




cilquirm wrote:
> 
> you can redefine it in your struts.xml, much like how you would specify
> the object factory to override the default object factory .
> 
> -a
> 
> 
> 
> Igor Vlasov wrote:
>> 
>> Hello.
>> I want to change some information in struts-default.xml.
>> 
>> I can move it to classes directoty and do any change....:-)
>> 
>> Is there any more sofisticated method to do the same from struts.xml?
>> 
>> For example i want to change TextProvider:
>> From 
>>    <bean type="com.opensymphony.xwork2.TextProvider" name="struts"
>> class="one class" />
>> 
>> to    
>> <bean type="com.opensymphony.xwork2.TextProvider" name="struts"
>> class="another class" />
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-S2---Change-struts-default.xml-content-tf4684048.html#a13400727
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to