wood burning stoves*
The moose likes Struts and the fly likes tiles description tag doesn't work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "tiles description tag doesn Watch "tiles description tag doesn New topic

tiles description tag doesn't work

Ivy Kho

Joined: Oct 20, 2004
Posts: 17
<definition name="main" path="/jsp/main.jsp">
<put name="menubar" value="/jsp/menubar.jsp" />
<put name="secondnav" value="/jsp/secondnav.jsp" />
<put name="breadcrumbs" value="/jsp/defbreadcrumb.jsp" />
<put name="content" value="http://www.google.com" />
<!-- the last put tag doesn't work. it just displays a blank page.
pls help. the purpose of the last tag is to make the web app more user friendly. thus, the user doesn't have to open a browser just to search in google.
Jonathan Lehr

Joined: Oct 07, 2003
Posts: 20
Hi Ivy,

If I understood you correctly, then what you need to do is to create a JSP file (perhaps you might want to call it "footer.jsp") that contains an anchor tag with the Google link, and replace what you currently have in Tiles with the path of the new JSP. So instead of this:

you'd have something like this:

The anchor tag in footer.jsp would look like this:

Ivy Kho

Joined: Oct 20, 2004
Posts: 17
yes but i wanna eliminate the need to click on the anchor tag.

based from the definition tags, the web page is divided into 4 parts : the breadcrumbs, side navigation / second nav, menubar and content page. when the user logins the web app, i want the content page to contain the main page of google and not a link. so from a user's perspective, the content page is the main page of google.com.

i know it seems pretty odd but the reality is that i am tasked to integrate 2 projects, one is done in java/jsp/struts and the other is in php. the user would login the java project and the content page should display the first page of the php project. both projects run on different serves so it would be nice if i could just do <put name="content" value="server1/project1/index.php" >.
Ivy Kho

Joined: Oct 20, 2004
Posts: 17
i solved my own problem heheheh

i redirected the page found in the struts config xml file.
I agree. Here's the link: http://aspose.com/file-tools
subject: tiles description tag doesn't work