Hi Thanks for the reply. I have a button "Cancel" While I am pressiong the cancel it has submitted in to the servlet. But I got the exception as " weblogic.utils.NestedRuntimeException". If I remove the window.close(); from the function then its working fine.May I know the reason for this. Also I wants to close the window in that same time.