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>&nbsp; </c:forEach>

Simply use the <c:url> and <c:param> tags.

-- 
Shawn Bayern
"JSTL in Action"   http://www.jstlbook.com


--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>

Reply via email to