I am fairly new to JSP , i learned that to create a variable you say this
<%String abc="1"; %>
If i want to change to value of abc I used this
<%= abc = "2" %> //Is this the right way??
But this value is shown on my JSP page how do I make it not show in my jsp page.
The short answer to your question is remove the
=. The<%= %>evaluates and prints the contents. Anything between<% %>is just standard java code. So, you want