• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

tiles description tag doesn't work

 
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>
 
author
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.
 
I'm so happy! And I wish to make this tiny ad happy too:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic