This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
<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>
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:
Joined: Oct 20, 2004
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" >.
Joined: Oct 20, 2004
i solved my own problem heheheh
i redirected the page found in the struts config xml file.