Hello dear members,
I want to display some sub categories when i click on a category. I sent the category ID using query string from jsp to servlet. in that servlet i wrote JDBC codes, executed query and saved all the subcategories in a List. Later I dispatched that to a JSP to show them. my servlet code is following:
The sub category list is iterated & displayed in the jsp page.
But the problem is- the Sub categories are repeated and appended bellow each time i request.
what I guess is the servlet's jdbc code is accessed every time.