Margaret, I appreciate your suggestion. I do have to support this functionality on all browsers. If it is possible, can you send me the sample code. I do have some questions but looking at the code would help clear some.
Thanks. -Nimmi -----Original Message----- From: Martin, Margaret [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 10:46 AM To: '[EMAIL PROTECTED]' Subject: RE: How to handle a PopUp Form from another Form? Nimmi - In doing something similar to what you want to do I did the following: 1) Create javascript function to open a new modal window (I am only concerned with supporting IE5.5, so using #showModalDialog works for me 2) create the link using plain ol' html, with an onClick handler that points to my javascript function. Build the url to pass to the function using html:rewrite which allows you to specify your forward, etc as you are currently doing with the html:link tag 3) For the action that I open in the popup, I define both success and failure pages. The success page contains javascript that looks for the opener window and refreshes it, then closes the popup window. 4) using the #showModalDialog is the most effective way that I have found to prevent the user from going back to the opener window. Hope this helps - Margaret -----Original Message----- From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 4:53 PM To: '[EMAIL PROTECTED]' Subject: RE: How to handle a PopUp Form from another Form? This is what my current html:link tag looks in my originator form(SubmitQuotes.jsp): <html:link forward="partDetails" paramId="partNumber" paramName="submitQuotesForm" paramProperty='<%= "rfqList[" + i +"].PartNumber" %>' > where partDetails is an action class that retrieves the details for the part from the database into an ActionForm "PartForm". The mapping for partUpdate.do will have a forward defined to part.jsp which displays data in partForm. 1. How do I specify in above html:link that part.jsp should open up in a new window with no location bar, tool bar,etc (The forward in mappings only allow TARGET parameter)? 2. The form action in part.jsp would be savePartInfo.do action class which saves part changes to database. If the partForm passes all validations I have to save the data and close this popup window and put control back to SubmitQuotes.jsp. How would I close the popup window in action class savePartInfo? 3. If I specified inputForm="part.jsp" in savePartInfo mapping, would it correct to assume that if the partForm validations failed the control would return back to the popup window(part.jsp) and NOT to the SubmitQuotes.jsp? 3. How do I make sure that while part.jsp is open the user cannot go back to SubmitQuotes.jsp? Hope this makes clear what I am trying to achieve. -Nimmi -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 4:09 PM To: [EMAIL PROTECTED] Subject: RE: How to handle a PopUp Form from another Form? I haven't done this before, but am not sure what the problem is. You say you have an indexed link to partInfo.do, which you can bring up in a new window using target=. Submit etc from this window should return you to this window if error etc.. Where exactly is your difficulty? Dave Shamdasani Nimmi-ANS004 <[EMAIL PROTECTED]> on 10/22/2001 04:47:25 PM Please respond to [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> cc: (bcc: David Hay/Lex/Lexmark) Subject: RE: How to handle a PopUp Form from another Form? It is an indexed link. I already know how to get the indexed link to include the part number. What I want to do is: This link should point to an action class, say "partInfo.do", which retrieves the complete information about that part and puts it into an ActionForm and then forwards to a JSP in a "NEW" window(with no location bar,no tool bar,etc.)on top of the originator window. User submits to this ActionForm have to follow the normal ActionForm features, i.e., bring back the part form screen in case of actionerrors. And If the update is successful then the part changes are to be saved to the database and the popup window closed and user allowed to continue work on the originator window Until the user has successfully updated the data and the popup window is closed, he/she should not be able to get to the originator form. I hope someone has handle this situation and can help me. -Nimmi -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 3:27 PM To: [EMAIL PROTECTED] Subject: Re: How to handle a PopUp Form from another Form? Perhaps you can use a indexed link which brings up the data in the popup form. As for the second part, could you use javascript onload function in the original page, which checks to see if popup exists, and if it does puts focus back on it? Cheers, Dave Shamdasani Nimmi-ANS004 <[EMAIL PROTECTED]> on 10/22/2001 02:50:51 PM Please respond to [EMAIL PROTECTED] To: "struts-user@jakarta. apache. org (E-mail)" <[EMAIL PROTECTED]> cc: (bcc: David Hay/Lex/Lexmark) Subject: How to handle a PopUp Form from another Form? Hi, I am looking for suggestions on how to handle this situation: I have a grid form (i.e., a form with tabular data). One of the columns of this tabular data is "PartNumber" which when clicked on a row should popup a form in a new window bringing up all the information about this part, e.g., description, dimensions,price, etc. from the database and the user should be able to modify this part data. 1.The popup form has to be just another ActionForm where the control returns to the form if any validation errors encountered. 2. The user should not be able to go back to the Originator form until done with the popup form. Thanks. -Nimmi