Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

retrieve records - 500 null help pl!

Sridhar Srinivasan
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having the foolowing code:
ArrayList hm411=(ArrayList)SelectBuilderBean.getAllAsSelect("scd",
"distinct department ","saestaff","where text1 like 'S%'","department","String");%>
int h=0;
Iterator iter411 = hm411.iterator();
while (iter411.hasNext())

The above code gives 500 null error.Iam writing the query based on the parameters passed and adding the resultset to an object in the bean and I am retrieving it here.If I don't display either the SelId or the SelName(display only one), There is no error.Also if I remove "distinct" there is no error.Can anybody help pl!Thanks
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic