Change value of a variable in JSP -
i new jsp , learned create variable this
<%string abc="1"; %> if want change value of abc used
<%= abc = "2" %> //is right way?? but value shown on jsp page how make not show in jsp page.
the short answer question remove =. <%= %> evaluates , prints contents. between <% %> standard java code. so, want
<% string abc = "1"; %> ....some stuff.... <% abc = "2"; %>
Comments
Post a Comment