Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Extend Tiles Definition in other pages in Struts 1.x  RSS feed

Shailesh Kumar Saxena
Posts: 25
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Friends...

I am new in Struts framework. I am using Struts 1.3.8.

I am using Struts tiles 1 succesfully, however I have come across a problem when trying to nest tiles.

I currently have a layout like so:

I wish to have another template like this, for use in quite a few user pages:
So I wish to extend the first layout for the user layout. In the tiles definiton I am using:

<definition name=".basic.layout" path="/WEB-INF/jsps/basicLayout.jsp">

<definition name=".user.layout" extends=".basic.layout">
<put name="content" value="/WEB-INF/jsps/user/layout.jsp"/>

<definition name="" extends=".user.layout">
<put name="userContent" value="/WEB-INF/jsps/user/page.jsp"/>

In user/layout.jsp I attempt to show the tile usually, using <tiles:get name="userContent"/>.

And the problem is The requested resource (/WEB-INF/jsps/user/userContent) is not available

Please provide your valuable suggestions.

Thank you to all of you.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!