• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tiles description tag doesn't work

 
Ivy Kho
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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.
-->
</definition>
 
Jonathan Lehr
author
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:


Jonathan
 
Ivy Kho
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i solved my own problem heheheh

i redirected the page found in the struts config xml file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic