I have a main JSP page, that calls a JSP page in a dialog box on the click of a button, and within this jsp page, i select a file from the client machine and uploads it to the server. So far all is working in order. Now what I am after is that, when the dialog box closes after uploading the file to the server, it should return the name of the file it has uploaded back to the main JSP page which called it. How should i go about this problem? Should I use session object or something?
you can use window.opener.FORMNAME.ELEMENTNAME.value=FILENAME assuming you have ELEMENTNAME as a field in you parent screen. The above command will set that to the value you have defined in the FILENAME. then in your parent screen you can access this element for you use.
Life called,so here I am.<br />Cheers<br />Niki.:-)
posted 12 years ago
Thanks for your help Nikki, problem solved.
It is difficult to free fools from the chains they revere - Voltaire. tiny ad: