How can we achieve following in JSTL –
<% response.setCharacterEncoding("UTF-8"); %>
I know we can refer to response object as below but how we can we call setter method?
${pageContext.response}
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s supposed to be done by the following line in top of your JSP:
Or, if you want to apply this on all JSPs, add the following to your
web.xml:See also: