Hello,
I'm new to JSP but have experience with .NET, and was wondering if someone could help me with this.
I am trying to encode an ID value that is being passed in a querystring. This value (assuming it isn't null) will then be printed out to a page. In .NET I'd use the HttpUtility.HtmlEncode method but was wondering if there is something similar in Java. Please find an example of my code below.
<param name="movie" value="swf.swf<%= request.getParameter(" id=") != null ? "?id=" + request.getParameter("id") : "" %>">
</param>
Any advice you could give me would be greatly appreciated.