Thanks Dave for the help,but i am aware about dynamic results and we are using it quite a lot in our application but my problem is not like choosing a dynamic result since when validation fails i am always being get input as control string and in all cases we have ApplicationFrame as parent template all we are deciding workingTemplate on run time but since in case of validation error my action class is not able to set WorkingTemplate so i am looking for a way to achieve this when Validation failed
On Sat, Mar 12, 2011 at 11:22 PM, Dave Newton <davelnew...@gmail.com> wrote: > 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 > >