File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Getting null while trying to get value of Multiple list Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Getting null while trying to get value of Multiple list" Watch "Getting null while trying to get value of Multiple list" New topic
Author

Getting null while trying to get value of Multiple list

Gopi Kishore
Greenhorn

Joined: Sep 27, 2003
Posts: 15
Hi All,

I am facing strange problem, I have JSP and servlet. The values in jsp are coming from DB. there are two multiple list boxes where i will move the data across, when i am trying to get the values of the list box i am getting null. when i retrieve first list box i am getting the values, when i am trying to get the values of list box 2 then i am getting null. Can anyone please help.

List box names subServiceList1 and subServiceList2


JSP:



Serlvet Code:

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It's pretty difficult to comprehend that code.

Have you verified they're being sent (like by using Firebug or a debugging proxy etc.)?
Gopi Kishore
Greenhorn

Joined: Sep 27, 2003
Posts: 15
Thanks for the response David, I verified will firebug it doesn't seem any problem. I am getting all the values from the form except the second list subServiceList2 .

The following is the output.

selectedSubList : null
ParameterNames : SubServiceAllocationPageBtns
ParameterNames : subServiceList1
ParameterNames : serviceCode
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting null while trying to get value of Multiple list