Introduction When implementing some sort of web application’s plugin architecture in which the layout is based on the Tiles framework (https://tiles.apache.org/) there could be the need to reload new tiles definitions on the fly. How to load Tiles definitions programmatically To load new tiles definitions first of all we get the Tiles container passing the servlet context to … [Read more...] about How to load Tiles definitions programmatically
Java Pills
How to modify the servlet request
Introduction Dealing with http web frameworks, one day or the other one has to cope requirements that go beyond the standard features offered by the chosen platform. A common issue would be to change the request submitted by the client or the response content returned to it on the fly. Java Servlet technology deals with these issues basically with servlet filters and some … [Read more...] about How to modify the servlet request
How to transform the servlet response content
Introduction In the previous post How to modify the servlet request we explained how to change the servlet request on the fly, using the servlet filter mechanism and the class HttpServletResponseWrapper. In the following paragraphs we are going to show how to change the response content just before it is sent back to the client. How to tranform the http response content We … [Read more...] about How to transform the servlet response content