• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Problem in request.getParameterValues()

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67645
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67645
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author and cow tipper
Posts: 5006
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic