File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Problem while receiving parameters.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem while receiving parameters.." Watch "Problem while receiving parameters.." New topic

Problem while receiving parameters..

Chak Terlapu
Ranch Hand

Joined: Oct 20, 2000
Posts: 32
When I am trying to call servlet B from servlet A the parameters are not getting passed and null value is returned.
servlet displays a table and adds checkbox to each row:

if i just call action like above null values are returned for value of i but if use as below then value is passed:
out.println("<Form method=\"post\" action=\"http://rupd1b42:8159/servlet/delete1.class?abcd=59\"><TH>");
but still the values of check boxes are "null". I am trying to receive parameters as follows:

Any help would be appreciated.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13025
Your Form tag pair has to completely enclose the checkboxes. It looks to me like it is separate, so it should be no surprise that the checkbox information is not transmitted.
author of:
I agree. Here's the link:
subject: Problem while receiving parameters..
It's not a secret anymore!