Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in request.getParameterValues()

 
Rajendra Ugrani
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64973
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this to see why saying things like "it's urgent" is one of the worst things to do when posting.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64973
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are the other checkboxes checked? The form will only submit values for checked checkboxes.
 
Rajendra Ugrani
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have three check boxes and out of which two are checked.
 
Rajendra Ugrani
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic