How to print java variable in jsp page

Print java variable in jsp by
<%=  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