On 11-Apr-2000 raghuk wrote:
> Hi,
>
> I would like to make my problem more clear.
>
> 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.

Why are you making it so hard on your self? Unless I'm missing the obvious here
this is the way i would implement it.

create a multiple selection box you can have the users select the x record they
want deleted.
Press a submit button -> catch the request in the doGet() or doPost() method.
check is the correct button ('delete') is pressed
if so -> see to which values the request.getParameter("delete_record") is set
rebuild it to a nice sql delete query ('delete from record where id=1 or id=2
or ...')
redisplay the page et voila, the deleted records are gone

Now am i missing the obvious? I think not


--
Mphasis Media BV.                         Interactive architects
Wouter Boers <[EMAIL PROTECTED]>   http://www.MphasiS.com
Phone: +31 (0)71 5238575                  Fax: +31 (0)71 5238576
Wouter Boers <[EMAIL PROTECTED]>                http://www.ikke.net

___________________________________________________________________________
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