Hi Leticia: You're right, I don't understand your question completely (must be because I'm no guru..;)).. But may be you can use this thought anyways: you can use a session variable when you paint your jsp. What i mean is you can test for the existence of this session variable and if it does not exist, add the onLoad stuff in, if it does exist, don't. So if when you submit the form (the first time), you simply set that session variable, you should be home.. (this will work assuming i understood enough o your problem in the first place!!)
Good luck! Geeta Leticia Golubov wrote: > 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]

