Title: RE: Get-rid of unwanted pages

    [Punya Sheel]  SOLUTION ... at end
    I would like to have few tips on this:

    I have a servlet (deleteServlet) that is called from another servlet
    (adminServlet). This, ofcourse, deletes a record in my database. Now,
    if I want to delete 25 records from database (hypothetically), I will
    call deleteServlet 25 times from the adminServlet.
    Now, each time I delete a servlet I throw a resultant page from
    deleteServlet. That results in 25 pages (unwanted !!) in my session if
    I call deleteServlet 25 times.

    can anyone tell me how do I get rid of them ?
    [Punya Sheel]  You must be marking the records to be deleted, say checkbox, radio button, some way... now set a flag 'D' for records to be deleted. Now send your flaglist to delete servlet and that intern calls the method in a loop, I am guessing you are using some query on DB to delete record...

    Donot call the servlet that many times... :-)
    Try this, or write in detail,

    Punya

(Tel.    +91-44-625-6437 extn:310
+ [EMAIL PROTECTED]

     

Reply via email to