Bug 19221 - In <c:url/> encodeURL() called twice causes duplicate jsessionid
Summary: In <c:url/> encodeURL() called twice causes duplicate jsessionid
Status: RESOLVED INVALID
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: unspecified
Hardware: All All
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-22 16:36 UTC by starbreather
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description starbreather 2003-04-22 16:36:03 UTC
When given a relative url and called twice, like this, 

<c:url var="countryUrl" value="business.jsp">
  <c:param name="lang" value="${param.lang}"/>
  <c:param name="businessType" value="${param.businessType}"/>
  <c:param name="country" value="${row.country}"/>
</c:url>
<a href="<c:url value="${countryUrl}"/>"><c:out value="${country.names
[row.country]}"/></a>

an url of the form "business.jsp;jsessionid=XYZ;jsessionid=XYZ?..." is 
generated, rendering the link invalid.
Comment 1 Pierre Delisle 2003-04-30 01:02:23 UTC
Use 
     <a href="<c:out value="${countryUrl}"/>"><c:out value="${country.names
[row.country]}"/></a>

and it will work.