nest « Taglib « JSP-Servlet Q&A





1. JSP Custom Taglib: Nested Evaluation    stackoverflow.com

Say I have my custom taglib:

<%@ taglib uri="http://foo.bar/mytaglib" prefix="mytaglib"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>

<mytaglib:doSomething>
  Test
</mytaglib:doSomething>
Inside the taglib class I need to process a template and tell the JSP to re-evaluate its output, ...

2. nested el variables for jsp taglibs    stackoverflow.com

I'm trying to create an el variable that is only available inside a tag so that it would be something like:

<mytaglib:mytag>
  Foo is ${foo}
</mytaglib:mytag>
I've followed the documentation I can find ...