Passing array from JSP to Javascript(how to create a matrix in javascript) -


I get a list from my java code and I would like to create a matrix from this list. I have a selection in my JSP and I would like to display the values ​​of my matrix in respect of the value of my choice in a table

My list of my food

  & Lt; Html: select property = "immeuble.zone" size = "1" style id = "area" style class = "saiege" & gt; & Lt; Html: optionsCollection property = "optionsZone" label = "libelle" value = "code" /> & Lt; / HTML: Select & gt;  

My limit in my JSP

  list options zone = new Arraylight (3); OptionsZone.add (new CodeLibelleBean ("1", "1")); OptionsZone.add (new CodeLibelleBean ("2", "2")); OptionsZone.add (new CodeLibelleBean ("3", "3"));  

In my wish list

  hashmark tarif = new hashmap (); Tarif.put ("1", "100"); Tarif.put ("1", "150"); Tarif.put ("1", "180"); Tarif.put ("2", "200"); Tarif.put ("2", "250"); Tarif.put ("2", "290"); Tarif.put ("3", "300"); Tarif.put ("3", "350"); Tarif.put ("3", "360");  

I'm not sure that I understand your question, but maybe you can write your javascript Arrays and some operations with them If this is the case, you will need to use some Java JSON converter.

Here's the starting point:


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -