I have a code like
<% int myvar =20; %>
I wish to access it via JSP tags, is something like this possible?
${pageScope.myvar}
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.
Scriptlet variables are created in service method and hence they have local scope so the
EL cannot evaluate them. The
ELoperates upon scoped variables – page scope, request,session and application scope.