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
For me expression language works only if I make that variable accessible, by putting it for example in page context.
<% Object myObject = new Object();
pageContext.setAttribute("myObject", myObject);
%>
Otherwise tas receives null.
And
works with no additional effort. Also <%=%> gives jsp compile-time type validation, while El is validated only in runtime.