First, I'd say this isn't really a Struts question. Second, it looks like you're not submitting the data in the current page to the page you're calling in window.open. Third, ew. Using a popup is usually a pretty user-hostile design choice (people get confused about why the Back button is suddenly broken).
Brian On Fri, Nov 4, 2011 at 4:37 AM, ANTARA PAUL CHOUDHURY (IT DEPT.) < antara.choudh...@rosevalleyindia.com> wrote: > I am trying to pull up a new window by using window.open.I used the > following function: > > > function tosubmit(){ > > if (document.forms[0].condition.checked == true){ > > > > window.open("/RoseValley/newrenewalbusiness.do?print=Y","","toolbar=no,menubar=no,height=700,width=900,left=60,top=0,scrollbars=yes"); > document.forms[0].submit(); > > }else{ > > document.forms[0].action = '/RoseValley/newrenewalbusiness.do?print=N'; > document.forms[0].submit(); > > } > return true; > } > > > > > It opens the page okay when I click on the button but I also want to pull > up the data from the same action.Unfortunately it does not show the data in > the pop up window.Please let me know what I am doing wrong. > > > > > Thanking you in advance > > > Regards > > > Antara C > > > This message and the information contained herein is proprietary and > confidential and subject to theRose Valleyemail policy statement, You may > review the policy athttps://www.rosevalleyindia.com/emailprivacy >