struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Krah <tk...@fachschaft.imn.htwk-leipzig.de>
Subject Xwork Question - how to Inject another instance than default
Date Thu, 05 Feb 2009 20:12:09 GMT
Hi.
I did some rework to the struts2-portlet2-plugin to make it possible to hook 
in a custom URLBuilder.

I declared a default one like this:

<bean type="org.apache.struts2.portlet.util.PortletURLBuilder" name="default" 
class="Default" />

My application e.g. wants to support liferay using a custom url builder.

Using

<bean type="org.apache.struts2.portlet.util.PortletURLBuilder" name="default" 
class=Custom />

does not work because "default" is already loaded. 
How can i tell xwork, to inject my custom instance instead the default one?
What the common way to do this?

thx for help.

Torsten


Mime
View raw message