This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "appending parameters to url" Watch "appending parameters to url" New topic

appending parameters to url

sdeep anand

Joined: Jul 16, 2006
Posts: 7

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.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63351

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

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

It will give you a String[].

Java Developer
I agree. Here's the link:
subject: appending parameters to url
It's not a secret anymore!