Print java variable in jsp by
ternary operator usage
<%= JavaVariable %>
ternary operator usage
<input type="hidden" name="Name" value="<%= (session != null && session.getAttribute("Code") != null) ? session.getAttribute("Code").toString() : ""%>"/>
No comments:
Post a Comment