org.makumba.commons
Class AutoCompleteServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.makumba.commons.AutoCompleteServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class AutoCompleteServlet
- extends HttpServlet
This servlet figures out a list of possible values given a beginning string on a field of a given type. Results are
returned as described at http://github.com/madrobby/scriptaculous/wikis/ajax-autocompleter TODO: this should work
with the currently used query language TODO: adapt for ptr: add an if which checks the fieldType, then, do the
queries necessary to get the title (as in the ptrEditor) and generate the right result (read scriptaculous doc)
- Version:
- $Id: AutoCompleteServlet.java 5154 2010-05-18 22:01:40Z rosso_nero $
- Author:
- Manuel Gay
- See Also:
- Serialized Form
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resourceDirectory
public static final String resourceDirectory
- See Also:
- Constant Field Values
RESOURCE_PATH_JAVASCRIPT
public static final String RESOURCE_PATH_JAVASCRIPT
- See Also:
- Constant Field Values
AutoCompleteServlet
public AutoCompleteServlet()
doGet
public void doGet(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
IOException
- Overrides:
doGet
in class HttpServlet
- Throws:
ServletException
IOException