struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nils-Helge Garli Hegvik <nil...@gmail.com>
Subject Re: Xwork Question - how to Inject another instance than default
Date Fri, 06 Feb 2009 05:59:30 GMT
I'm curious, why do you need a custom URL builder for Liferay?

Nils-H

On Thu, Feb 5, 2009 at 9:12 PM, Torsten Krah
<tkrah@fachschaft.imn.htwk-leipzig.de> wrote:
> 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
>
>

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


Mime
View raw message