java, jquery and jsp messaging -


i using jquery request pass array of strings java class jsp.

something :

 $.ajax({url: '<%= java class %>'+'?s1='+ $("#networkbox1").val()+'&box1=box1&tick=add&val1='+ allvs+'&s2='+ $("#networkbox2").val()+'&box2=box2&val2='+ allvs,                  type: 'get',                  datatype: 'text',                  async: false,                  success: function(data) {processbox(newdata);}}); 

allvs --is array of strings.

i converting these strings list in java class , updating java collections (hashmap) on basis of parameters s1 , s2 , getting response jquery , printing again processbox function shown above. parametrs s1 , s2 can same different users. question need have methods in java class thread safe (synchronized) ? web app used different users when login website.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -