Thank you! So it’s really easy! Thank you very much! Regards, Alessandro Il giorno 14/mag/2014, alle ore 14:43, Lukasz Lenart <lukaszlen...@apache.org> ha scritto:
> 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.canev...@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-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org