91-9990449935 0120-4256464 |
ServletActionContext classThe ServletActionContext class provides methods to get HttpServletRequest, HttpServletResponse, ServletContext and HttpSession objects. It is a convenient class and prefered than ActionContext class. Methods of ServletActionContext classThe commonly used methods provided by ServletActionContext class are as follows:
How to obtain instance of HttpSession ?If we have the instance of HttpServletRequest class, we can call the getSession() method of HttpServletRequest interface to get the instance of HttpSession. For example: OR We are going to see the full example of this in next topic SessionAware interface.
Next TopicStruts2 SessionAware Interface Example
|