bosco_v
Jul 27th, 2005, 01:52 PM
My Web application is extending myAbsInfraServlet for authentication,
authorization and other infrastructure related cross-cutting issues.
I could not find the solution to migrate it to Spring (may include hibernate in the near future). I am very new to Spring framework. In the forum I saw some where that we can resolve this kind of issue with WebApplicationContext . Can anyone tell me how? I am using WSAD 5.1.2 (J2EE 1.3, Servlet 2.3, JSP 1.2). Appreciated your help in advance.
public abstract class myAbsInfraServlet
extends HttpServlet implements Constants
{
public void init()throws ServletException {
//loading system related properties, data source etc,.
}
public void doGet(HttpServletRequest req, HttpServletResponse rep)
throws ServletException, IOException
{
//First time entry: display signon page......
//Second time onwards: validate user authentication, autherization
// and the prodcuts he is authorized to and related stuff.....
//if fails, re-display the signon page..
//Session variable: DB Connection String, user name, app name...
myDoGet(userid, req, rep); //this may override by child class...
}
//doPost same as above.........
protected abstract String getApplicationName(HttpServletRequest req)
throws NullAppException;
}//end of myAbsInfraServlet .........
authorization and other infrastructure related cross-cutting issues.
I could not find the solution to migrate it to Spring (may include hibernate in the near future). I am very new to Spring framework. In the forum I saw some where that we can resolve this kind of issue with WebApplicationContext . Can anyone tell me how? I am using WSAD 5.1.2 (J2EE 1.3, Servlet 2.3, JSP 1.2). Appreciated your help in advance.
public abstract class myAbsInfraServlet
extends HttpServlet implements Constants
{
public void init()throws ServletException {
//loading system related properties, data source etc,.
}
public void doGet(HttpServletRequest req, HttpServletResponse rep)
throws ServletException, IOException
{
//First time entry: display signon page......
//Second time onwards: validate user authentication, autherization
// and the prodcuts he is authorized to and related stuff.....
//if fails, re-display the signon page..
//Session variable: DB Connection String, user name, app name...
myDoGet(userid, req, rep); //this may override by child class...
}
//doPost same as above.........
protected abstract String getApplicationName(HttpServletRequest req)
throws NullAppException;
}//end of myAbsInfraServlet .........