Hi friend

  U delete those records in the delete servet and
after finishing all ur work now call back the previous
servlet by using the response.sendRedirect Method
which will take care of the thing.  But U can do this
only for the doGet method and not for the post method.
 Here u should be taking the records from the database
then only U can do this refereshment otherwise it is
not possible I think.  Bye

R. Satish Kumar

--- Nic Ferrier <[EMAIL PROTECTED]> wrote:
> >>> raghuk <[EMAIL PROTECTED]> 11-Apr-00
> 1:35:07 PM >>>
>
> >My html page has a listbox containing 25 records. I
> delete  say 3
> >records from it. The deletion is done in a
> DeleteServlet.
> >After deletions, I want to reload the same page
> having the listbox
> so
> >that changes are reflected. Now I would like to see
> only 25-3 =22
> >records in my list box (in effect refreshing the
> page)in the
> resultant
> >page. For reasons, I cannot doaway with listbox and
> replace it with
> >check boxes or etc.
>
> Your html page is generated by DeleteServlet I
> suspect?
>
> If so I can't see your problem... have DeleteServlet
> return the new
> page.
>
> If you turn off caching of pages or have an
> enclosing frame for your
> pages you can avoid the user pressing the BACK
> button to return to the
> previous page.
>
>
> In fact I would design it slightly differenty, I
> would have
> DeleteServlet pass the request on to another servlet
> (or JSP) to
> display the page in a sort of MVC model.
>
>
> Nic
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>

__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to