S
shaji
I have a JSP page with some sciptlets.
<% String myname = "";
pageContext.setAttribute("myname",myname);
%>
<c:set var="myname" value="sherlok" />
Now I have copied the value "sherlok" to variable myname.
I can see the setting by
set value is: <c
ut value='${myname}'/>
This works fine as it prints out jstl variable myname.
But below statement doesnt work.
set value is: <%=myname%>
How can I get the value into a java variable from a jstl variable?
-Regards,
spa
<% String myname = "";
pageContext.setAttribute("myname",myname);
%>
<c:set var="myname" value="sherlok" />
Now I have copied the value "sherlok" to variable myname.
I can see the setting by
set value is: <c
This works fine as it prints out jstl variable myname.
But below statement doesnt work.
set value is: <%=myname%>
How can I get the value into a java variable from a jstl variable?
-Regards,
spa