Commit bd32c62a authored by Derek DeMoro's avatar Derek DeMoro Committed by derek

Added pageContext for simplicity.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@309 b35dd754-fafc-0310-a699-88a17e54d16e
parent 335206db
......@@ -16,6 +16,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.PageContext;
public abstract class WebBean {
......@@ -43,4 +44,12 @@ public abstract class WebBean {
this.session = session;
this.application = app;
}
public void init(PageContext pageContext){
this.request = (HttpServletRequest)pageContext.getRequest();
this.response = (HttpServletResponse)pageContext.getResponse();
this.session = (HttpSession)pageContext.getSession();
this.application = (ServletContext)pageContext.getServletContext();
this.out = (JspWriter)pageContext.getOut();
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment