aspose file tools*
The moose likes Servlets and the fly likes Problem in request.getParameterValues() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem in request.getParameterValues()" Watch "Problem in request.getParameterValues()" New topic
Author

Problem in request.getParameterValues()

Rajendra Ugrani
Greenhorn

Joined: Oct 13, 2006
Posts: 4
Hi,
My screen page has set of checkboxes.

String list_boxes[] = req.getParameterValues("list_boxes");

But I am getting only the value of the first checkbox which is selected in the screen in the string array list_boxes.

I am using WEBSPHERE 6.0 as my server.

servlet version is 2.3.

Please help me.....It's urgent
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61428
    
  67

Please read this to see why saying things like "it's urgent" is one of the worst things to do when posting.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61428
    
  67

Are the other checkboxes checked? The form will only submit values for checked checkboxes.
Rajendra Ugrani
Greenhorn

Joined: Oct 13, 2006
Posts: 4
I have three check boxes and out of which two are checked.
Rajendra Ugrani
Greenhorn

Joined: Oct 13, 2006
Posts: 4
Originally posted by Bear Bibeault:
Are the other checkboxes checked? The form will only submit values for checked checkboxes.


I have three check boxes and out of which two are checked.
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

It might be an issue with your html.

What is the name of the checkboxes in your form, and what is the String name you are using to pull the values out of the fields?

-Cameron McKenzie
Rajendra Ugrani
Greenhorn

Joined: Oct 13, 2006
Posts: 4
I have two machines with the same configuration(Red Hat Linux & Websphere).
My code is working fine in one of the machine and not working in the other.
I really doubt it's a configuration issue. May be some websphere or servlet configuration.
I even replaced the class file with the working piece. Still the same problem exists.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in request.getParameterValues()