Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Since you mentioned using JSP, dojo one way to do it is: 1) Include dojo and supporting files in your JSP (in the section) 2) In your Java code, use a library such as GSon to convert the java array to JSON. (Alternately you can even construct the JSON object as a string when preparing the java array) 3) use the dojo combobox or filteringSelect widget (both support auto-complete) in your JSP: in the html body section. For examples, see: <a href="http://livedocs.dojotoolkit.org/dijit/form/FilteringSelect" rel="nofollow noreferrer">http://livedocs.dojotoolkit.org/dijit/form/FilteringSelect</a> <a href="http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/form/_autoComplete.html?testWidget=dijit.form.FilteringSelect" rel="nofollow noreferrer">http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/form/_autoComplete.html?testWidget=dijit.form.FilteringSelect</a> <a href="http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/form/_autoComplete.html?testWidget=dijit.form.ComboBox" rel="nofollow noreferrer">http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/form/_autoComplete.html?testWidget=dijit.form.ComboBox</a></p> <p>The following answer I provided to another question might help you with details on how to include in JSP: <a href="https://stackoverflow.com/questions/9453768/displaying-data-on-a-jsp-page-using-dojo-data-grid/9460690#9460690">Displaying Data on a JSP page using Dojo Data grid</a></p> <p>Alternately, you can use plain HTML for your presentation layer and use AJAX to obtain the data for your combobox (via a servlet that returns JSON, for example) I prefer this approach since it keeps the presentation layer completely separate from your middle-tier and backend</p> <p>You can also use JQuery UI widgets instead of Dojo: <a href="http://jqueryui.com/demos/autocomplete/" rel="nofollow noreferrer">http://jqueryui.com/demos/autocomplete/</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload