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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -