wood burning stoves 2.0*
The moose likes Struts and the fly likes Define tag cannot set a null value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Define tag cannot set a null value" Watch "Define tag cannot set a null value" New topic
Author

Define tag cannot set a null value

Gaurav Chikara
Ranch Hand

Joined: Jun 09, 2000
Posts: 410
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 ]

SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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?


Merrill
Consultant, Sima Solutions
Gaurav Chikara
Ranch Hand

Joined: Jun 09, 2000
Posts: 410
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Define tag cannot set a null value