How can I put an attribute in the JSP PageContext for the current request (so that it becomes available through ${myVar}) from the filter that runs before the JSP?
${myVar}
I think I can miss something, but:
ServletRequest
request.setAttribute("myVar", value);
chain.doFilter(request, response);
Source: https://habr.com/ru/post/1732294/More articles:How to draw “text” using GWT-Graphics - javaWhat web service can I use to send MMS from my web application? - apiANTLR - Writing Tree Grammar for AST - c #how to link drop-down lists in the form of rails - ruby-on-railsSearch rotation widget for java - javabind this keyword for non-anonymous functions - jqueryCustom text for file input - htmlHow to exclude the appearance of private headers in the source browser? - header-filesProblem with creating linux embedded child process - linuxa quick and dirty way to pass a method with parameters as a parameter? - methodsAll Articles