From: "Tony Smith" <[EMAIL PROTECTED]>
Thank you very much for your post. I agree with you
and some user were complaining about the effect your
mentioned. My situition is that I have two selects,
once the users update one, I need to populate the
other with correspondent options. If I do not go to
another page, what is the best way to do? WOuld you
please give me some hits? THanks, again.
Not long ago I would have said your two options were to submit the form and
re-display it with the new contents in the second select list, or else put
everything in the page and make the changes with client side scripting.
But now, there's AJAX, and you can replace individual parts of the page
seemingly by magic. Someone who actually knows how it works will have to
comment, but you can take a look at Frank's "Java Web Parts" project for an
example: http://javawebparts.sourceforge.net/
I don't quite see how you'd ask the Struts framework to render just one
<html:select> tag without letting it process the entire page so it would
have the information from the enclosing <html:form> tag.
FWIW, my original suggestion can be reduced to:
onChange="'mynewpage.do?para='+value;"
--
Wendy Smoak
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]