Re: [Q] how to do server side validation for popup that closes on sub mit?
This would work... validate the form before everything, if okay return response.write(body onload=myfunctionforclosingthiswindowandredirecting the parent()); from action servlet the javascript can be in the popup and the function in only called my the response... hope this helps mark Giovedì, 13 mar 2003, alle 17:48 Europe/Rome, [EMAIL PROTECTED] ha scritto: hello, I need popup that submits some data and then closes and refresh parent window, but if server side validation fails then that popup window needs to show errors and stay. any ideas hot to do it? tnx Best Regards. Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Q] how to do server side validation for popup that closes on sub mit?
how can use response to open a pop-up window and send the user to somewhere else in main window from action/eventhandler function. Thanks Anis -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 9:55 AM To: Struts Users Mailing List Subject: Re: [Q] how to do server side validation for popup that closes on sub mit? This would work... validate the form before everything, if okay return response.write(body onload=myfunctionforclosingthiswindowandredirecting the parent()); from action servlet the javascript can be in the popup and the function in only called my the response... hope this helps mark Giovedì, 13 mar 2003, alle 17:48 Europe/Rome, [EMAIL PROTECTED] ha scritto: hello, I need popup that submits some data and then closes and refresh parent window, but if server side validation fails then that popup window needs to show errors and stay. any ideas hot to do it? tnx Best Regards. Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Q] how to do server side validation for popup that closes on sub mit?
the pop window is already open.. 1000 times.. i really should read before barking the question was how to validate and then close it... if there's and error then the function isn't called if all okay it is... i personally don't like send js via the response but I answered the question with something that works... You could use a jsp or a trusty traditional servlet. so anus what would you do? 'in response to the question that is' Giovedì, 13 mar 2003, alle 18:06 Europe/Rome, [EMAIL PROTECTED] ha scritto: how can use response to open a pop-up window and send the user to somewhere else in main window from action/eventhandler function. Thanks Anis -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 9:55 AM To: Struts Users Mailing List Subject: Re: [Q] how to do server side validation for popup that closes on sub mit? This would work... validate the form before everything, if okay return response.write(body onload=myfunctionforclosingthiswindowandredirecting the parent()); from action servlet the javascript can be in the popup and the function in only called my the response... hope this helps mark Giovedì, 13 mar 2003, alle 17:48 Europe/Rome, [EMAIL PROTECTED] ha scritto: hello, I need popup that submits some data and then closes and refresh parent window, but if server side validation fails then that popup window needs to show errors and stay. any ideas hot to do it? tnx Best Regards. Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Q] how to do server side validation for popup that closes on sub mit?
Thank you, Mark, I understand the idea I'd add field that will get value after validation Ok in Action class that then enable onload script in JSP tnx Best Regards. Michael. -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 9:13 AM To: Struts Users Mailing List Subject: Re: [Q] how to do server side validation for popup that closes on sub mit? the pop window is already open.. 1000 times.. i really should read before barking the question was how to validate and then close it... if there's and error then the function isn't called if all okay it is... i personally don't like send js via the response but I answered the question with something that works... You could use a jsp or a trusty traditional servlet. so anus what would you do? 'in response to the question that is' Giovedì, 13 mar 2003, alle 18:06 Europe/Rome, [EMAIL PROTECTED] ha scritto: how can use response to open a pop-up window and send the user to somewhere else in main window from action/eventhandler function. Thanks Anis -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 9:55 AM To: Struts Users Mailing List Subject: Re: [Q] how to do server side validation for popup that closes on sub mit? This would work... validate the form before everything, if okay return response.write(body onload=myfunctionforclosingthiswindowandredirecting the parent()); from action servlet the javascript can be in the popup and the function in only called my the response... hope this helps mark Giovedì, 13 mar 2003, alle 17:48 Europe/Rome, [EMAIL PROTECTED] ha scritto: hello, I need popup that submits some data and then closes and refresh parent window, but if server side validation fails then that popup window needs to show errors and stay. any ideas hot to do it? tnx Best Regards. Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]