Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting null while trying to get value of Multiple list

 
Gopi Kishore
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic