Check out dynamic results and see if that helps. http://struts.apache.org/2.x/docs/result-configuration.html http://struts.apache.org/2.x/docs/parameters-in-configuration-results.html
Dave On Sat, Mar 12, 2011 at 12:49 PM, aum strut <aum.str...@gmail.com> wrote: > Hi All, > > In my application i have a single ApplicationFrame.jsp which takes care of > the overall look and feel of the application,from my action classes i am > setting the name of working template and this dynamic template name is being > used in the ApplicationFrame as follows > <s:include value="%{workingTemplate}" /> > > and i have following entry in my struts.xml file > <action name="Foo" class="foo" > > <result>applicationFrame.jsp</result> > </action> > > everything is working fine,but in one module i am trying to use build in > validation framework to validate user input and it seems working fine,but it > caught me with one issue while validating if the vallidation fails i am > being send back with the result "input" and in this case the workingtemplate > is not set and hence i am not able to show proper view.i am doing something > like > > <action name="A" class="a" method="myMethod"> > <result>applicationFrame.jsp</result> > <result name="input"> > applicationFrame.jsp > </result> > </action> > since even in the case of input results Parent template has to be > ApplicationFrame to maintain the look and feel so i am wondering how i can > pass workingTemplate value in this case. > > any help in this regard will be helpfull. > > Thanks in advance > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org