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:05:38 GMT
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

Thank you.


>From: "sudheshna aaa" <sudheshna@hotmail.com>
>Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
>To: user@struts.apache.org
>Subject: RE: close the window if no errors
>Date: Thu, 22 Apr 2004 16:00:20 +0000
>
>then should there be a done.jsp just to close itself?
>
>
>>From: "Nathan Ewing" <Nathan.Ewing@cbhk.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 11:46:17 -0400
>>
>>Read the past conversation, if there are no errors your are directing to
>>a jsp page that immediately closes itself.
>>
>>-----Original Message-----
>>From: sudheshna aaa [mailto:sudheshna@hotmail.com]
>>Sent: Thursday, April 22, 2004 11:45 AM
>>To: user@struts.apache.org
>>Subject: RE: close the window if no errors
>>
>>I don't want to go to any JSP, I want to close the window if  errors are
>>
>>empty.
>>
>>Thank you.
>>
>>
>> >From: "Nathan Ewing" <Nathan.Ewing@cbhk.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 11:41:29 -0400
>> >
>> >Something like this in the <action></action>:
>> >
>> ><forward name="done" path="/done.jsp"/>
>> >
>> >-----Original Message-----
>> >From: sudheshna aaa [mailto:sudheshna@hotmail.com]
>> >Sent: Thursday, April 22, 2004 11:39 AM
>> >To: user@struts.apache.org
>> >Subject: RE: close the window if no errors
>> >
>> >what should it be in the struts-config.xml corressponding to "done" to
>> >close
>> >the 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 11:08:22 -0400
>> > >
>> > >Yes you do! :)
>> > >
>> > >-----Original Message-----
>> > >From: sudheshna aaa [mailto:sudheshna@hotmail.com]
>> > >Sent: Thursday, April 22, 2004 11:14 AM
>> > >To: user@struts.apache.org
>> > >Subject: RE: close the window if no errors
>> > >
>> > >
>> > >But if I use
>> > >mapping.findForward( "done" ); screen is hanging
>> > >
>> > >Do I need to define "done" in struts-config.xml
>> > >
>> > >Thank you for your help.
>> > >
>> > >
>> > > >From: "Nathan Ewing" <Nathan.Ewing@cbhk.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 10:40:09 -0400
>> > > >
>> > > >Just save like you normally would, and when it finishes do a
>>"return
>> > > >(mapping.findForward("done"));", which goes to a page with the
>> >following
>> > > >as part of the html code:
>> > > >
>> > > ><body onLoad="javascript:self.close()">
>> > > >
>> > > >
>> > > >Nathan
>> > > >
>> > > >-----Original Message-----
>> > > >From: sudheshna aaa [mailto:sudheshna@hotmail.com]
>> > > >Sent: Thursday, April 22, 2004 10:31 AM
>> > > >To: user@struts.apache.org
>> > > >Subject: close the window if no errors
>> > > >
>> > > >On the click of submit, I need to store the values in the database
>> >and
>> > > >if
>> > > >there are no errors,
>> > > >I need to close the window.
>> > > >
>> > > >Do I need to use <logic:empty> tag to see if the errors are
>>empty--->
>> > > >then
>> > > >close the window
>> > > >
>> > > >Can somebody provide me the code. Thank you in advance.
>> > > >
>> > > >_________________________________________________________________
>> > > >FREE pop-up blocking with the new MSN Toolbar - get it now!
>> > > >http://toolbar.msn.com/go/onm00200415ave/direct/01/
>> > > >
>> > > >
>> > >
>> >---------------------------------------------------------------------
>> > > >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> > > >For additional commands, e-mail: user-help@struts.apache.org
>> > > >
>> > > >
>> > > >
>> > >
>> >---------------------------------------------------------------------
>> > > >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> > > >For additional commands, e-mail: user-help@struts.apache.org
>> > > >
>> > >
>> > >_________________________________________________________________
>> > >FREE pop-up blocking with the new MSN Toolbar - get it now!
>> > >http://toolbar.msn.com/go/onm00200415ave/direct/01/
>> > >
>> > >
>> > >---------------------------------------------------------------------
>> > >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> > >For additional commands, e-mail: user-help@struts.apache.org
>> > >
>> > >
>> > >---------------------------------------------------------------------
>> > >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/onm0020036
>>2
>> >ave/direct/01/
>> >
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >For additional commands, e-mail: user-help@struts.apache.org
>> >
>> >
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >For additional commands, e-mail: user-help@struts.apache.org
>> >
>>
>>_________________________________________________________________
>>MSN Toolbar provides one-click access to Hotmail from any Web page -
>>FREE
>>download! http://toolbar.msn.com/go/onm00200413ave/direct/01/
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org
>>
>
>_________________________________________________________________
>FREE pop-up blocking with the new MSN Toolbar  get it now! 
>http://toolbar.msn.com/go/onm00200415ave/direct/01/
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar  get it now! 
http://toolbar.msn.com/go/onm00200415ave/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