wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Ajax: how to achieve Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Ajax: how to achieve" Watch "Ajax: how to achieve" New topic

Ajax: how to achieve

trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613

I have a webPage which dynamically loads list of food items for a particular date. (name of the item have been changed)
I did that by using AJAX with Strut.
Now I have a new requirement which needs to populate the food item list when any of day, month, year field changes but before loading it in the drop down menu, I need to check if the user selected item is already in the new list them keep the same selection in the drop down menu.

I am not sure how to achieve this.
I have a JSP which calls the Action class which gets the data from the Database and build the URL and send it back to JSP. The JSP has code to iterate through the response XML and populate the list. But on which form do I need to set the already selected food item if it exists in current list?

It is sorta covered in the JavaRanch Style Guide.
subject: Ajax: how to achieve
Similar Threads
Drop down from DataBase problem
Stuck with AJAX implementation on form reload
dynamically populating dropdown menu with ajax
using database values to populate drop down menus