I'm a bit confused by what you are trying to do. > I have a jsp page which I need to retrieve some values at > onLoad time, i.e.: > <body onload="javascript:getValues();">
If you need to retrieve values then do that in the Action and put them somewhere (e.g. a request scope attribute) so that you can access them in your jsp. It *sounds* like you could do with reading up on the basics of MVC in a web environment.. Paul > -----Original Message----- > From: Leticia Golubov [mailto:[EMAIL PROTECTED] > Sent: 24 February 2004 17:37 > To: Struts Users Mailing List > Subject: RE: ActionForward and onLoad() > > > I've tried > > window.open(editUrl, "scope", > "width=380px,height=300px").document.forms[0].submit(); > > but that doesn't behave very well... > > > -----Original Message----- > From: Leticia Golubov [mailto:[EMAIL PROTECTED] > Sent: 24 February 2004 17:09 > To: Struts User Mailing List > Subject: ActionForward and onLoad() > > > Hello Gurus, > > I'm in a bit of a predicament, and my lack of expertise in > Javascript and > Struts isn't helping... :( > > I have a jsp page which I need to retrieve some values at > onLoad time, i.e.: > <body onload="javascript:getValues();"> > > all getValues() does is submit the form on this page which > sets a bunch of > bean values for me to retrieve further down this page... > > The problem is, on the Action for this form, I need to > redisplay the same > page... As you can imagine I find myself in a never ending > onload loop using > this setup of mine... > > Assuming anyone can understand my description of this > situation, my question > is: how can I get a page to execute the onload first time but > not to do it > second time around? Basically, I would like the onload for > that window to > be called from the parent window, but I've no idea how to do > it... I've > tried doing below from the parent window: > > window.open(editUrl, "scope", > "width=380px,height=300px").onload(document.forms[0].submit()); > > but that didn't work, i'd imagine that submitted the current > window, not the > one about to be opened. > > thanks in advance > > Leticia > > > > > > > > > > > > --------------------------------------------------------------------- > 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] > ************************************** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

