Interceptor w/ pre-result listener? Dave
On Tue, Feb 1, 2011 at 12:50 PM, Richard Sayre <richardsa...@gmail.com>wrote: > I am making a mobile site for my current web application. I have a > huge number of actions that return to JSP pages. I have a mobile > detection class written. > > Is there a way that I can change the result page if the user is on a > mobile device? > > I want to avoid having to write this in all my actions: > > if(mobile) { > > return SUCCESS_MOBILE > > } else { > > return SUCCESS > > } > > > If I could change the result page it would make it easier. For > example if it is mobile then I replace the result page of > /mydir/myPage.jsp to /mydir/myPage-m.jsp. > > Any suggestions? > > Thank you, > > Rich > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >