Rahul kumar verma wrote:Sorry for my side Tapas and Dave because I'm using scriptlet only of JSP and according to that fetching data from database on click buttom
Yes I understand.
That is why we are suggesting you to rectify these practices.
Using scriplet is tempting and is OK in very small JSPs.
Once you are in actual projects and size of application increases, it will be very difficult to maintain and debug.
Separating the view and the logic will make your life easier.
And EL has been the standard in JSP since 14-15 years. Scriplets should be avoided.