• Post Reply Bookmark Topic Watch Topic
  • New Topic

passing String[ ] in request object.  RSS feed

 
Mohan raj gaddam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI
I have have a window in that checkboxes are there. And hyperlink is also there when i click on a link and popup menu is displayed.When i click on anyone of the link in the popup menu i have to open the new window.
But the problem is how to pass the checkboxes values to the sevlet like using request.getParameterValues("check") .. bcox i am submiting the window.Window should not submit but the values should be sent to servlet.
When i click on link i am calling as window.open("test.jsp?a=b&b=c");
Suppose if i fill the values in the String[] in the page...how to pass that strin[] in the above link. Please let me know.CHeck box will be 50.
Regards
MOhan
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you give the same name to multiple parameters, they will be retrieved as a String array by getParametersValues().
For example:

hth,
bear
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!