dear users,
i have a problem in my
servlet class..i am getting data from database and storing that into list..and on the basis of list is empty i am setting session attribute
and then retriving in
jsp page through codes..at the time of execution when i am first selecting the category as '
java' it is giving results and again when i am selecting category as 'asp' and then it is giving no books found..but it also carry previous data of 'java'...
i am pasting my code ...
please kindly help me to understand code...
searchbook.jsp
searbookservlet.java (url:searchbook.jlc)
showbook.jsp
my question is why it is carrying results?