Re: Struts + JavaScript = dynamic forms

2005-07-26 Thread BHansard
There are several ways that this can be accomplished. 1. Pure Struts. You can create an Initialization Action which holds you form as the input form. When you change select 1, in the onchange submit the page to the init.do. the page will retain all input values as the form will maintain your

RE: Struts + JavaScript = dynamic forms

2005-07-26 Thread Mark Benussi
Have a look at the Javascript HTTPXMLRequest. Its called AJAX. There is some resources on the stuts wiki page http://wiki.apache.org/struts/AjaxStruts - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Struts + JavaScript = dynamic forms

2005-07-26 Thread Janek Ziniewicz
I d like to write a form with, say, 3 dropboxes. Choosing an option in 1. box changes list of available options in other 2 boxes. [Eg. box #1 can store list of countries and box #2 list of cities in chosen country, or all cities if no country is chosen.] It can be done with JavaScript. However, I