How can I pass an object to a JSP tag?
I have a JSP page that contains a scriplet where I instantiate an object. I would like to pass that object to the JSP tag without using any cache. For example I would like to accomplish this: <%@ taglib prefix="wf" uri="JspCustomTag" %> <% Object myObject = new Object(); %> <wf:my-tag obj=myObject /> I'm trying to avoid directly interacting with any of the caches (page, session, servletcontext), I would rather have my tag handle that. dfrankow A slightly different question that I looked for here: "How do you pass an object to a tag file?" Answer: Use the "type" attribute of the attribute