Spring MVC + jQuery | Code Factory
Download code and jars : Link. File : Country.java package com.codeFactory.bean; public class Country { private int countryId; private String countryName; // Getters and setters. } File : Action.java package com.codeFactory.controller; import java.util.ArrayList; import java.util.List; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import com.codeFactory.bean.Country; @Controller public class Action { List<Country> allCountryList = new ArrayList<Country>(); public List<Country> getAllCountryList() { return allCountryList; } public void setAllCountryList(List<Country> allCountryList) { this.allCountryList = allCountryList; } @RequestMapping(value = "/getCountryList", method=RequestMethod....