Now i get pop-up window but some other problems i am facing As u mentioned this will fail if i make use of validator javascript functions on search citeria. I thought i will use serverside validation - but now what's happening is i get validation errors on my new pop-up window and not on my original window- is there any other way do that everything works fine ? regards Manisha
Keshav Shetty <[EMAIL PROTECTED]> wrote:Hi Manisha, As I understood your requirement is 1. In first page you show teh search criteria. User enters all required input and press show report. 2. The form will be submitted action gets control and retrives required data and forwards to report jsp. 3. The final report page should come in a separate popup. If above requirement is correct then you can use the following mechanism to control the flow. 1. In your criteria page you have a form (I guess) Instead of submitting the form write a javascript function to submit the form and define the target to popup window. The javascript function may look like this. function submitForm() { var winHand = 'someName'; var someWindow = window.open("actionPath",winHand,"menubar=no, toolbar=no,scrollbars=no,resizable=no,width=385,height=175,left=300,top=300"); document.formName.target= winHand; document.formName.submit(); } Please replace someName, formName and actionPath with your form values. But the above technique will fail if the criteria form uses any validation. Please write me if you need any additional info. Thanks & regards Keshav Manisha Sathe wrote: >Hi, > >I am having a serach criteria, depending on that one report will be generated. >After Submit it is going to one Action handler and then going to JSP report >page. Currently i am displaying it in the same window. But if i want to >display result in new window then how can i achieve it ? > >(I believe this sort of question posted just few days back, but i am not >finding it now....Anybody pls can repost it ? ) > >Thanks in advance, > >Regards >Manisha > > > > >--------------------------------- >Do you Yahoo!? > Yahoo! Search presents - Jib Jab's 'Second Term' > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone.