java - resultset is returning null pointer exception -
i have struts program fetching data db. in front end (jsp) i'm giving condition not fetch data(data condition not there in db). when execute code i'm getting null pointer exception because not fetching data. code working fine if there data present in db specified conditions. have exception handlers. these handlers handle exception , show error message user. in case if data not there in db want display message user saying 'no data found'. i'm checking list in jsp (using jstl) whether empty or not.but execution not coming jsp since handled exception handler. can 1 me ?
Comments
Post a Comment