Ajax and JavaScript Recipes

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
This documentation refers to version 2.1 which has not been released yet.
Warning
2.1
titleDojo plugin is deprecated

The Dojo plugin will be deprecated on Struts 2.1

Table of Contents
indent20px
stylenone
minLevel3

...

Code Block
Java
titleAutocompleterExample.java
public class AutocompleterExample extends ActionSupport {

   public Map<String, String> getOptions() {
      Map<String,String> options = new HashMap<String,String>();
      options.put("FLFlorida", "FloridaFL");
      options.put("ALAlabama", "AlabamaAL");

      return options;
   }
}

The mapping:

...