struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Lindholm <greg.lindh...@gmail.com>
Subject Re: using property/constant placeholder in struts config file
Date Mon, 19 Dec 2011 17:55:01 GMT
You could also define a global result for success:

<global-results>
   <result name="success">/templates/application/applicationframe.jsp</result>
</global-results>

On Mon, Dec 19, 2011 at 1:44 AM, aum strut <aum.struts@gmail.com> wrote:
> Thanks Łukasz, that's a perfect approach
>
> 2011/12/18 Łukasz Lenart <lukasz.lenart@googlemail.com>
>
>> Instead hardcoded result you can use expression
>>
>> <action name="welcome" class="welcomeAction">
>>     <result>${actionFrame}</result>
>> </action>
>>
>> And create a BaseAction (as a base action for all your actions) with
>> getActionFrame() which will return
>> "/templates/application/applicationframe.jsp" or whatever your want
>> ;-)
>>
>>
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>> Warszawa JUG conference - Confitura http://confitura.pl/
>>
>> ---------------------------------------------------------------------
>> 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