JSF outputLink path question

Posted on 2008-11-19
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

    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

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
    Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    755 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now