struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Petrelli" <antonio.petre...@gmail.com>
Subject Re: Welcome page in Tiles2 with Struts2
Date Mon, 24 Sep 2007 10:41:51 GMT
2007/9/24, wild_oscar <miguel@almeida.at>:
>
>
> I want my welcome page to be a Tiles2 template (with, say, a welcome.jsp
> body).
>
> In my Tiles1+Struts1 application the way I achieved this was like:
>
> 1) Create a dummy welcome.jsp file
> 2) Have a WelcomeServlet to listnen to that page
> 3) Make the servlet forward the request to a welcome.do action
> 4) Return the action's success to a tiles template
>
> Is there any alternative, cleaner way to do this with T2 and S2?



AFAIK, the simplest way to do it is by creating an "index.jsp" page that
inserts a definition:

<tiles:insertDefinition name="my.home.definition" />

HTH
Antonio

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message