KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What is the best way to URL-encode a String representing URL path (not request parameter) with JSTL? <c:url value="/user/${user.name}"/> According to any documentation I find , this should take care of it. But it does not. It encodes parameters beautifully ( <c:url value="/user/${user.name}"><c:param name="section" value="employment 4u so good"/></c:url> ) but I'm not passing any parameters. How can I safely encode a simple URL, like above, without fear of what ${user.name} could be?
Tags (comma-separated)
Save Edits
Cancel