struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GF <gan...@gmail.com>
Subject Alternative UrlRenderer bean
Date Mon, 15 Nov 2010 11:37:06 GMT
Hello everyone.
i want to use a custom UrlRenderer bean.
reading Struts2 source code i found that is used to "render" the URLs
generated by <s:url ..>

If in my struts.xml I insert:

<bean type="org.apache.struts2.components.UrlRenderer" name="mystruts"
class="org.apache.struts2.components.MyUrlRenderer"/>

Nothing happens, probably because Struts2 continue to inject the
renderer with "struts" name.

If in my struts.xml I insert

<bean type="org.apache.struts2.components.UrlRenderer" name="struts"
class="org.apache.struts2.components.MyUrlRenderer"/>

the struts inizialization fails, since that bean with "struts" name is
already defined.

Any idea?

Thank you

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


Mime
View raw message