Get HttpServletRequest Struts 2

Get HttpServletRequest Struts 2

To access HttpServletRequest object in struts 2 either you use ServletActionContext or implement ServletRequestAware as below:

  • Using┬áServletActionContext

  • By implementing ServletRequestAware interface:

  • For more details struts 2 please refer its official tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *