my dog learned polymorphism*
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: 60782
    
  65

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
Greenhorn

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

It will give you a String[].


Cristiano Mariano de Oliveira
 
Don't get me started about those stupid light bulbs.
 
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
window.open help
How to create a method to accomodate array in method parameter?