posted 7 years ago
Hello, I have a JSP where I am trying to replace the scripting with EL, Tag Handlers, etc. I have some scripting that checks an ArrayList to see if it is null and if it has more than one element. The attribute name for this ArrayList has been set in an earlier servlet. I am thinking of creating a Simple Tag in the JSP. I know how to get the attribute name of the ArrayList into my tag, but I am not sure how to return a value back to the JSP ? Maybe I am making this more complicated than it needs to be, do I just need to set a variable/attribute in the tag handler code and it will be available to the JSP ? It doesn't have to be anything fancy, a boolean will do.
Author and ninkuma