View RSS Feed

My Java Tips

  1. Using reflection QueryRequestTag

    by , 05-21-2011 at 10:51 PM (My Java Tips)
    This post presents an example that show use of reflection in creating a tag. The created tag will call some methods of the request (HttpServletRequest) object using reflection.

    Source code for the QueryRequestTag handler is presented below:

    Java Code:
    public class QueryRequestTag extends ExTagSupport {
        static Object []params = new Object[0];
        static Hashtable methods = new Hashtable();
        static LocalStrings ls =