Quantcast
Channel: web development helpdesk » parameter
Viewing all articles
Browse latest Browse all 2

How to create a url ensuring parameters are encoded?

$
0
0
URL parameters require the parameter values (and names) to be appropriately encoded. You can use the URLEncoder class to do this yourself, or the and tags can be used to handle it for you. <c:url value="mypage.jsp" var="myUrl"> <c:param name="nameParam" value="${name}" /> <c:param name="ageParam" value="${age}" /> <c:param name="genderParam" value="${gender}" /> </c:url> Click <a href='<c:out value="${myUrl}"/>'>here</a>

Viewing all articles
Browse latest Browse all 2

Trending Articles