Hi,
I am attempting to create a simple
JSP Filter for my Struts-based application. The filter is supposed to print a line to stdout any time a JSP is accessed.
The problem I am having is that when I access my JSPs with the following filter mapping, I am not able to see the output in stdout. It's almost like the jsp is not found with the below <url-pattern>:
However, if I use a mapping like the one below, then I am able to see the output in stdout for every JSP and every other resource accessed:
My goal is find a way to only see the ouptut in stdout for JSPs and not everything else. Please advise!
Thanks!
My code: