append key-value pair to javascript variable
1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Friday, January 27, 2006 05:48 AM

How to append a key-value pair to a javascript variable.
For example if i have a javascript variable forward and key-value pair as name=joe how to append key-value pair to forward variable in javascript.Also i want to know how to retrive the value i.e. joe in servlet.

Re: append key-value pair to javascript variable

Posted By:   elayaraja_david  
Posted On:   Tuesday, January 31, 2006 12:18 AM

let say name=joe needs to be passed to servlet

in javascript,

namevariable='joe'; //assign dynamically if require


retrive within MyServlet class,

String name = request.getParameter("name");

About | Sitemap | Contact