Results 1 to 3 of 3

Thread: c:url errors

  1. #1
    Join Date
    Sep 2004
    Location
    Sydney
    Posts
    27

    Default c:url errors

    I have a JSP page in a directory /WEB-INF/jsp/done.jsp

    Inside that JSP, I have this:
    Code:
    <a href="<c&#58;url value="done.html"/>">Home</a>
    When I click on that link, it tries to go to /webname/WEB-INF/jsp/done.jsp, which is obviously wrong!

    I'm a little confused because I'm new to JSTL & spring

  2. #2
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

    try
    Code:
    <a href="<c&#58;url value="/done.html"/>">Home</a>
    HTH
    Omar Irbouh

    Spring Modules Team
    http://irbouh.blogspot.com/

  3. #3
    Join Date
    Aug 2004
    Location
    Roeselare, Belgium
    Posts
    16

    Default

    Also, make sure you have

    Code:
    <%@taglib uri="/tags/c" prefix="c" %>
    in your JSP and maybe you can try

    Code:
    <a href="<c&#58;url value='/done.html'/>">Home</a>
    (note the single quotes)

    ... since some application servers have sometimes problems with multiple quotes.
    Pieter Coucke
    Onthoo.com

Similar Threads

  1. Replies: 17
    Last Post: Jan 2nd, 2007, 01:43 PM
  2. Replies: 1
    Last Post: Oct 17th, 2005, 01:04 PM
  3. Add to errors in FormAction
    By garethmorgan in forum Web Flow
    Replies: 5
    Last Post: Jul 21st, 2005, 09:23 AM
  4. Replies: 1
    Last Post: Apr 28th, 2005, 01:54 PM
  5. Replies: 1
    Last Post: Dec 3rd, 2004, 02:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •