bcisystems
asked on
How to read a scriptlet variable in a core (c:out) jsp tag
<%
String readMe = "Hi Experts";
%>
<c:out value="readMe"/>
-------------------------- ---------- ---------- ----
the code above fails.
-------------------------- ---------- ---------- -----
String readMe = "Hi Experts";
%>
<c:out value="readMe"/>
--------------------------
the code above fails.
--------------------------
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<%
String readMe = "Hi Experts";
%>
<c:out value="<%=readMe%>"/>