This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSP and the fly likes appending parameters to url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "appending parameters to url" Watch "appending parameters to url" New topic
Author

appending parameters to url

sdeep anand
Greenhorn

Joined: Jul 16, 2006
Posts: 7
Hi,

I want to send multiple values appended to url in GET method. I am able to pass Strings. I am using it to send id value. But i want to send multiple ids for delete action. Can I pass String array to send these ids? I am using struts actions path as the url.
Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61306
    
  66

You can pass multiple values for a single parameter key. Just use the same key for all the values.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Roberto Ferraz
Greenhorn

Joined: Aug 30, 2006
Posts: 3
In your servlet, you must use:

It will give you a String[].


Java Developer
 
GeeCON Prague 2014
 
subject: appending parameters to url