spring - JSP/JSTL change value member of array -


I want to change the value of the array in JSP / JSTL which have been created in the controller. How can i do

  if (_shop_commisions! = Null) {double [] _sum = new double [6]; Model.addAttribute ("zodiac", _ sum); }  

JSTL

  & lt; C: set var = "sum [0]" value = "4" /> $ {Sum [0]} // is showing it 4.0   

You are doing Setting a variable named "sum [0]" and value 4 If you want to change the model then you have to interact with the model.

  $ {sum [0] = 4}  

Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -