J
jackie
How can I make use of java variable in taglib in a JSP ?
e.g
<%
String number="123";
%>
<c
ut value="${number}"/>
How can I do it ?
e.g
<%
String number="123";
%>
<c
How can I do it ?
jackie said:How can I make use of java variable in taglib in a JSP ?
How can I make use of java variable in taglib in a JSP ?
e.g
<%
String number="123";
%>
<cut value="${number}"/>
How can I do it ?
Murray said:Do what others have said, or just put the value onto the page context
<%
String number="123";
pageContext.setAttribute("number", number);
%>
<cut value="${number}"/>
Or get rid of the need for scriplets by changing to an MVC architecture.But
that's another matter ;-)
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.