Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 60764

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]
Cristiano Mariano

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

It will give you a String[].

Cristiano Mariano de Oliveira
I agree. Here's the link:
subject: appending parameters to url
Similar Threads
Spring - MultiActionController with multiple buttons
Export to excel using JSP
help for designing and grouping elements using java collection attached help
How to create a method to accomodate array in method parameter?