Announcement Announcement Module
Collapse
No announcement yet.
c:url errors Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    try
    Code:
    <a href="<c&#58;url value="/done.html"/>">Home</a>
    HTH

    Comment


    • #3
      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.

      Comment

      Working...
      X