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]

Reply via email to