Encoding URL

2002-10-25 Thread Stefan
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=yesbegin=c:out value='${boundaryStart}'/
 [c:out value=${boundaryStart}/ - c:out value=${boundaryStart + perPage 
-1}/]/anbsp;
/c:forEach

Thanks,

Stef



Re: Encoding URL

2002-10-25 Thread Shawn Bayern
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=yesbegin=c:out value='${boundaryStart}'/
  [c:out value=${boundaryStart}/ - c:out value=${boundaryStart +
 perPage -1}/]/anbsp; /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