This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I am developing a struts application with Ajax.
Mainly I am using Ajax for populating the look up values in drop down based on some other drop down/text values.
Then I am parsing the xml and load the values in the drop down.
I am also using the Struts Validation Framework.
What is the issue I am facing is, I am having the form with 25 - 30 fields.
After invoking the ajax and populated the look up values in drop down and if any input validation fails, it's loading again in the same page for displaying the error message and at that time whatever look up value loaded in drop down from ajax is getting vanished, obviously.
How can we resolve it? Please suggest me whether the approach I am using is right? Since most of my form feilds will have more than 20 - 30 fields and most of the drop down values will based on the one or more other drop down values.
Please help to suggest is there any other easy way (sample example/links) to do it in Ajax with Struts (mainly for drop down).
Below is my coding:
Joined: Jul 11, 2005
Sorry.. I thouht posting this ajaz forum and posted here. help to move to ajax forum