Access Request and Response
In this section, you will learn to develop an application that accesses the request and response object in struts 2 application.
Response Filter Servlet Example
This Example shows how to use of response filter in Java Servlet. Filter reads own initial parameters and adds its value to the response.
Send a Response Status in servlet
All Response status is defined in HttpServletResponse Class. You can then use constants (response.SC_OK,response.SC_NOT_FOUND etc..) values to return process status to the browser.