Yes I did actually. I adapted a servlet filter to allow prepending text and appending text. I checked the content type before appending the closing tags to make sure it was "text/html", and applied some explicit mappings in web.xml so the servlet filter would not try to append HTML on .CSS...
Ok, after being tabled for awhile, I'm back on this issue.
I'm trying to create a servlet filter to append closing body and html tags (like "</body></html>")to the end of every HTML and JSP before sent to the browser.
I'm still stuck and running in circles. Any ideas to help me out would be...
What exactly are you trying to do? There are usually ways of leveraging the CSS's inheritance to solve the problem of re-defining color over and over again.
I simply want to use a servlet filter to take the response from JSPs and append a string before sending it back to the client. My servlet filter is in the chain and executing, but I'm receiving the error "OutputStream already retrieved"
Below is my doFilter method. Please let me know what I'm...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.