You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by mi...@ps.ge.com on 2003/03/13 17:48:43 UTC

[Q] how to do server side validation for popup that closes on sub mit?

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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: [Q] how to do server side validation for popup that closes on sub mit?

Posted by Mark Lowe <ml...@officinedigitali.it>.
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, 
michael.korolyov@ps.ge.com 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org