You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Garner Shawn <sh...@gmail.com> on 2006/09/22 02:12:21 UTC
[Struts 2] dynamic mapping in struts.xml config file
Is there any wat to map to dynamic results?
<action name="product" class="com.age.j.soft.action.ProductAction">
<result>/product/%{dynamic_product}/default.jsp</result>
</action>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [Struts 2] dynamic mapping in struts.xml config file
Posted by "Shibing.Chen" <xi...@gmail.com>.
I think struts2 can achieve that cos WebWork result type has a parse param.
Check out WebWork doc for details.
On 9/22/06, Garner Shawn <sh...@gmail.com> wrote:
> Is there any wat to map to dynamic results?
>
> <action name="product" class="com.age.j.soft.action.ProductAction">
> <result>/product/%{dynamic_product}/default.jsp</result>
> </action>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org