JSF outputLink path question

Posted on 2008-11-19
Medium Priority
Last Modified: 2012-05-05
I have 2 web applications running simultaneously.  The 1st web application is running from the root.  So, it is accessed through http://localhost.  The 2nd web application is running under a different context and is accessed by http://localhost/web-app-2.  I have links in the 2nd web app that I want to point back to the 1st web app.  When I use <h:outputLink value="/home.jsp">Home</outputLink>, the link is rendered as <a href="/web-app-2/home.jsp">Home</a>.  Can I use the outputLink tag to render the following: <a href="/home.jsp">Home</a>?
Question by:pcarrollnf
1 Comment
LVL 13

Accepted Solution

Bart Cremers earned 500 total points
ID: 23001826
I don't think you can render it to "/home.jsp", but you can achieve what you want easily by writing:

    <h:outputlink value="/../home.jsp">Home</h:outputLink>

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I came across an unsolved Outlook issue and here is my solution.
Sometimes MS breaks things just for fun... In Access 2003, only the maximum allowable SQL string length could cause problems as you built a recordset. Now, when using string data in a WHERE clause, the 'identifier' maximum is 128 characters. So, …
Loops Section Overview
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month17 days, 6 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question