Re: using property/constant placeholder in struts config file

2011-12-19 Thread Greg Lindholm
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.str...@gmail.com wrote: Thanks Łukasz, that's a perfect approach 2011/12/18 Łukasz Lenart

Re: using property/constant placeholder in struts config file

2011-12-18 Thread Łukasz Lenart
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

Re: using property/constant placeholder in struts config file

2011-12-18 Thread aum strut
Thanks Łukasz, that's a perfect approach 2011/12/18 Łukasz Lenart lukasz.len...@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)

using property/constant placeholder in struts config file

2011-12-17 Thread aum strut
Hi All, While working in one application i came across a requirement where i need to define a constant in struts.xml file and want to use in my application.Here is the use case in our application the layout is fixed and we are using a same template throughout the application say