public void doFilter(ServletRequest arg0, ServletResponse arg1,
FilterChain chain) throws IOException, ServletException {
String s=arg0.getParameter("rp");
if("1".equals(s))
{
try
{
long bef = System.currentTimeMillis();
System.out.println("*************");
arg0.setAttribute("kk","ppppppp" );
chain.doFilter(arg0, arg1);
new Exception();
}
catch(Exception e)
{
System.out.println("====================");
arg0.getRequestDispatcher("/usrlist.do").forward(arg0, arg1);
}
}
else
{
try
{
long bef = System.currentTimeMillis();
System.out.println("*************");
chain.doFilter(arg0, arg1);
}
catch(Exception e)
{
arg0.getRequestDispatcher("hello.jsp").forward(arg0, arg1);
}
}
}