• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

two forms on one jsp.

 
Raghuram Chaluvadi
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

Functionality:- User enters an associate_id and clicks search. The results are displayed in the bottom half of the page.




The problem is, it throws a null pointer exception since the associate object is not there the first time the page loads. It gets created in my DAO class once the results are fetched. Can you please suggest a turnaround.
 
Anooplal .A.H
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai try this
Place those portion of code which use associate object in a if condition like
if(request.getAttribute("associate")!=null){}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic