• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tiles 2.x.x Question

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

I have a web application wherein I have defined a tiles configuration (header, menu, body and footer). Now in my web.xml, I have defined a page (say index.jsp) to be my landing page. Now how could I get my tiles layout page (layout.jsp) be applied to this landing page? It looks like for the tiles to be applied to a jsp page, we have to route it through an Action class... Help me please!
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Incidentally I do the following in my index.jsp.



My action configuration:



My tiles layout as below:



I want to avoid the refresh thing and want to show my tiles laid out structure in my landing page. How to acheive this?
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tried changing the index.jsp as follows:



And got the following error:


I have the welcome.action defined properly. What is going wrong here?
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh yes, I solved it. Changed my index.jsp to look like this as below:



I have defined a namespace element (as namespace="/") in the struts configuration file that has the welcome action within it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic