You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Stefan <ni...@studioweb.com> on 2002/10/25 21:58:10 UTC
Encoding URL
Hi,
How can I rewrite the URL (encode) for session tracking within this forEach tag:
<c:forEach var="boundaryStart" begin="0" end="${r.rowCount -1}" step="${perPage}">
<a href="?name=<%= name %>&location=<%= location %>&sex=<%= sex %>&isPostBack=yes&begin=<c:out value='${boundaryStart}'/>">
[<c:out value="${boundaryStart}"/> - <c:out value="${boundaryStart + perPage -1}"/>]</a>
</c:forEach>
Thanks,
Stef
Re: Encoding URL
Posted by Shawn Bayern <ba...@essentially.net>.
On Fri, 25 Oct 2002, Stefan wrote:
> Hi,
>
> How can I rewrite the URL (encode) for session tracking within this forEach tag:
>
> <c:forEach var="boundaryStart" begin="0" end="${r.rowCount -1}" step="${perPage}">
> <a href="?name=<%= name %>&location=<%= location %>&sex=<%= sex
> %>&isPostBack=yes&begin=<c:out value='${boundaryStart}'/>">
> [<c:out value="${boundaryStart}"/> - <c:out value="${boundaryStart +
> perPage -1}"/>]</a> </c:forEach>
Simply use the <c:url> and <c:param> tags.
--
Shawn Bayern
"JSTL in Action" http://www.jstlbook.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>