aspose file tools*
The moose likes Struts and the fly likes Tiles 2.x.x Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Tiles 2.x.x Question" Watch "Tiles 2.x.x Question" New topic
Author

Tiles 2.x.x Question

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9618
    
    2

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!


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9618
    
    2

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

Joined: Sep 26, 2006
Posts: 9618
    
    2

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

Joined: Sep 26, 2006
Posts: 9618
    
    2

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tiles 2.x.x Question