c:url encoding issue with ampersands

Discussion in 'Java' started by johkar, Feb 25, 2006.

  1. johkar

    johkar Guest

    I am outputting a link using c:url and c:param

    <c:url var="location" value="whatever.do">
    <c:param name="city" value="${city}"/>
    <c:param name="state" value="${state}"/>
    </c:url>
    <a href="${location}">City, ST</a>

    It appears c:url encodes everything in the URL except for ampersands.
    This causes the page to not validate to W3C standards for HTML 4.01 or
    XHTML.

    Is there any way to get around this???
    johkar, Feb 25, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Howard, Brett
    Replies:
    1
    Views:
    400
    Prasad
    Jul 12, 2003
  2. darrel
    Replies:
    14
    Views:
    26,334
    Oenone
    Jun 14, 2005
  3. SDM
    Replies:
    2
    Views:
    546
  4. Andy Dingley
    Replies:
    1
    Views:
    348
    Bjoern Hoehrmann
    Jun 10, 2004
  5. Replies:
    4
    Views:
    466
    cwdjrxyz
    Sep 24, 2006
Loading...

Share This Page