java - [Ljava.lang.String; when update the value of checkbox -


I created a web project from jsp and hibernate, I have a checkbox ... I have no problem while inserting When updating the data but data, I found this in my code in my code [Ljava.lang.String and the parameters of my first checkbox are not stored in the database, but other checkboxes work well

Another thing is how the checks from the database Oks value can be Czech ??

My JSP

  & lt; Td> & Lt; Spring: This part of the message code = "official right" text = "default text" /> gt; & Lt; / Td> & Lt; TD & gt; & Lt; / TD & gt; & Lt; Td> & Lt; Fieldet id = "menu_e" & gt; & Lt; Input type = "checkbox" name = "menu" value = "user" class = "ccmenu" & gt; Users & lt; Br / & gt; & Lt; Fieldet id = "sub_menu_user_e" & gt; & Lt; Input type = "checkbox" name = "sub_menu_user" value = "user1" class = "ckmusor" & gt; User 1 & lt; Input type = "checkbox" name = "sub_menu_user" value = "user2" class = "ckmuscular" & gt; ; User2 & lt; Input type = "checkbox" name = "sub_menu_use" value = "user3" class = "ckmuscular" & gt; User 3 & lt; Br / & gt; & Lt; / Fieldset & gt; & Lt; Input type = "checkbox" name = "menu" value = "monitoring" class = "ccmenu" & gt; Monitoring & lt; Br / & gt; & Lt; Fieldet id = "sub_menu_monitoring_e" & gt; & Lt; Input type = "checkbox" name = "sub_menu_motoring" value = "monitoring1" class = "ckmmmitt"> monitor1 and input type = "checkbox" name = "sub-menu_motoring" value = "monitoring 2" class = "ckmmit" & Gt; Monitoring 2 & lt; Input type = "checkbox" name = "sub_menu_motoring" value = "monitor3" class = "ckmmmm"> monitoring 3 & lt; Br / & gt; & Lt; / Fieldset & gt; & Lt; Input type = "checkbox" name = "menu" value = "parameter" class = "ccmenu" & gt; Parameters & lt; Br / & gt; & Lt; Fieldet id = "sub_menu_parameter_e" & gt; & Lt; Input type = "checkbox" name = "sub_menu_permator" value = "parameter1" class = "ckmpp" & gt; Parameter 1 & lt; Input type = "checkbox" name = "sub_menu_premater" value = "parameter2" class = "ckmpp" & gt; ; Parameter 2 & lt; Input type = "checkbox" name = "sub_menu_premater" value = "parameter3" class = "ckmpp" & gt; Parameter 3 & lt; / Fieldset & gt; & Lt; / Fieldset & gt; & Lt; / TD & gt;  

This is my JavaScript

  & lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ( '. Update'). Click (function () {var id_update = $ (this) .attr ( "id_update"); var nama_authority = $ (this) .attr (': Check'); var sub-menu_use = $ ('input: checkbox (name = sub-menu_use)'). ('(': Check '); var sub-menu = param = $ (' input: checkbox [name = all -menu_prmetr] '). (' Czech box '[name = sub_menu_monitoring] $ (' # Id_authority_e '). $ (' Id_update); $ ( '# id_authority_l'). Val (id_update); $ ( "# Nama_athoriti_i '). Wall (Nama_athoriti); $ (' # Menu_i 'Wall (Sub_menu_ugr); $ (' # Sub_menu_monitring_i '). Wall (Sub_menu_monitring); $ (' # Sub_menu_paramitr_i '). Wall (Sub_menu_paramitr);}) ; $ ('.delete'). Click (function () {var id_delete = $ (this) .attr ( "id_delete"); $ ( '# id_authority_d'). Val (id_delete);}); $ ( '# example'). Detatebl ({});}); & Lt; / script & gt; < / Code> 

and this is my controller

  public class operator {@RequestMapping (value = "/ admin / update_uthority.html", method = RequestMethod.POST) public Modal and visual update throws exceptions to authorized users (Modelmap model, HTTPSvette request request, HTTPSvette response response) {String ID_More = Request.JetPMater ("ID_Authority"); Authorization Authority Authority = Authorization Service (Id_author); String name = request.getParameter ("name_history"); String [] menu = request.getParameterValues ​​("menu"); String [] sb_user = request.getParameterValues ​​("sub_menu_user"); String [] sb_monitor = request.getParameterValues ​​("sub_menu_monitoring"); String [] sb_parameter = request.getParameterValues ​​("sub_menu_parameter"); Authorityuser.setId_authority (id_Authority); Authorityuser.setNama_authority (name); Authorityuser.setMenu (menu); Authorityuser.setSub_menu_user (sb_user); Authorityuser.setSub_menu_monitoring (sb_monitor); Authorityuser.setSub_menu_parameter (sb_parameter); AuthorityuserService.update (authorityuser); Model.addAttribute ("Success Update", "True"); Return list official unusver (model); }}  

Any help would be happy :)


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -