Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Define tag cannot set a null value

 
Gaurav Chikara
Ranch Hand
Posts: 412
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am defining a tag in my jsp like this




And in my beans getter method I am making sure not to return a null value

by this




Still I am getting the above error .Can any one please suggest what could be the cause of it

[ August 09, 2006: Message edited by: Gaurav Chikara ]
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you 100% sure that there is an object with the name RETRIEVE_QUOTE in either the session or the request, and that this object is of the correct type?
 
Gaurav Chikara
Ranch Hand
Posts: 412
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I initialised the Collection activeQquoteResults in my Form as a class variable

like private activeQuoteResults = new ArrayList(1);

and it started working
But still these is a patch solution .It should have worked through other way also

Has anyone else also faced same scenario?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic