struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Default parameter in custom result-type?
Date Wed, 14 May 2014 12:43:40 GMT
Define DEFAULT_PARAM like this

https://git-wip-us.apache.org/repos/asf?p=struts.git;a=blob;f=core/src/main/java/org/apache/struts2/dispatcher/StrutsResultSupport.java;h=269ed872e742e52ceeebecdf111a7225583febc3;hb=HEAD#l111


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2014-05-14 10:21 GMT+02:00 Alessandro Canevese [EngiMedia]
<alessandro.canevese@engimedia.it>:
> Hi all.
> I’ve managed to configure a really complex architecture, involving Struts2, freemarker,
Spring, etc..
> The icing on the cake is yet missing and I’m a little bit puzzled: maybe it’s too
easy to achieve, isn’t it?
>
> I’ve defined a result-type of my own; so I’ve put in the struts.xml:
>
> <result-types>
>   <result-type name=“mytype" default=“false" class=“blabla.MyResult"/>
> </result-types>
>
> The question is: how can I obtain that I can pass a default parameter without explicitly
write a <param name=“myparam”></param>?
>
> I mean, I would like to write something like the following:
>
> <result type=“mytype” name=“success”>parameter value</result>
>
> Instead I see no other way than writing
>
> <result type=“mytype” name=“success”>
>   <param name=“myparam”>parameter value</param>
> </result>
>
> Any help?
>
> Thank you in advance!
> Ciao
> Alessandro
>
>
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message