Hi
On the detail page press the delete button and it will execute a JSP which will delete
the record by firing the query and then refreshes the parent summary page.
you can use the following javascript code to refresh the parent window
The following javascript code should be in the child window.
<SCRIPT LANGUAGE="JavaScript">
function openLink(path)
{
window.opener.parent.location = path;
}
</SCRIPT>
----- Original Message -----
From: "S. Chen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 11:01 PM
Subject: How to delete a record
> Hi all,
>
> I have a jsp page called summary which displays a general info about all the
> records I got from database. Then if the user clicks on any specific
> record, a detail page will display the detail info about that record. On
> the detail page I have a delete button. If the user clicks the delete
> button, the record should be delete from the database and the summary page
> will show up with the latest results.
>
> Would anybody give me any ideas on how to make the delete button work?
>
> Thanks very much!
>
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Thanks & Regards
Bhushan Bhangale
Consultant
http://www.netacross.com
Chequemail.com - a free web based e-mail service that also pays!!!
http://www.chequemail.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets