want to open a popup window when the user clicks on a button. how to do that? do not want to update any fields when the window is closed from where the popup window was opened by click of a button.

The below code is in jsp, dispatchaction of a popup window.

In jsp:
<fmt:message var="btnReturn" key="btn.return" bundle="${bundle}"/>
<html:submit onclick="checkBeforeReturn();" property="method" value="${btnReturn}"/>

IN dispatch action
public ActionForward returnFacility(ActionMapping mapping,
           ActionForm form,
           HttpServletRequest request,
           HttpServletResponse response)
           throws IOException, ServletException {
       // do return
..............
...............
       return mapping.findForward("successReturn");
   }

Struts Config has
<forward name="successReturn" path="/PrepareAddAction.do" redirect="false"/>

Want to close the window when user presses Return. don't want to forward to another action.

how to do this?

i.e when user clicks on Return button want to ask user if he want to save then save if user want to otherwise close the window. Not sure where and how to write code for closing the window.

Thanks.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to