I use this code but is deprecated, can you help me to port it to JSP 2.2
<%= pageContext.getVariableResolver().resolveVariable("varName")%>
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.
According to the Javadoc, the new way of getting the variable resolver is to do
jspContext.getELContext().getELResolver(); as a PageContext is a JspContext, you could change your line to<%=pageContext.getELContext().getELResolver().resolveVariable("varName")%>.If all you want is to resolve a variable you should probably be using EL-syntax instead:
${varName}.