struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sudheshna aaa" <sudhes...@hotmail.com>
Subject RE: close the window if no errors
Date Thu, 22 Apr 2004 16:32:42 GMT
Geeta,

Exactly this is what i am looking for. I need to examine the errors object 
on the child window  and if it is empty, I need to close this child window.

Thank you.


>From: "Geeta Ramani" <gramani@terralink.com>
>Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
>To: "Struts Users Mailing List" <user@struts.apache.org>
>Subject: RE: close the window if no errors
>Date: Thu, 22 Apr 2004 12:05:08 -0400
>
>Hey I think I know what you are looking for. Correct me if I am wrong but 
>here's what i assume you are doing:
>
>You have a "parent" window where somebody licks a link or something which 
>opens a "child" window and the user edits stuff in the child window and 
>then submits it. Off the form goes to an action, and if there are no errors 
>you want the child window to go away and the user to sit looking at the 
>"parent" window. Is this correct?
>
>If so, you can do this.. but first tell me if I am way off-base or 
>something..
>
>Geeta
>
> > -----Original Message-----
> > From: sudheshna aaa [mailto:sudheshna@hotmail.com]
> > Sent: Thursday, April 22, 2004 12:06 PM
> > To: user@struts.apache.org
> > Subject: RE: close the window if no errors
> >
> >
> > Team,
> >
> > I think I need to have something like this psuedo code:
> >
> >    <%
> >    if(errors.isEmpty()){
> >    %>
> >    javascript:window.close();
> >    <%
> >    }
> >    %>
> >
> > Can anybody correct this code? I am getting errors not
> > defined. I want to
> > access ActionErrors>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>

_________________________________________________________________
Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! 
http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1/go/onm00200362ave/direct/01/


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


Mime
View raw message