下面是我的部分代码
<%
//当前会员
Users loginUser=(Users)session.getAttribute("loginuser");
if(loginUser==null)
{
response.sendRedirect("../index.jsp");
}
//商品信息
ProductManager pm=new ProductManager();
Product ProductByMinPrice=pm.getProductByMinPrice();//特价商品
 %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <base href="<%=basePath %>"/>
    <title>智@趣--我的帐户</title>
<link rel="stylesheet" type="text/css" href="images/css.css"/>
  </head>
我调试了,程序经过了response.sendRedirect("../index.jsp");
但是没有反映,依然执行下面的代码,导致引发空指针引用!
是不是因为没有请求的原因?
我用form表单的处理页面使用刚有效!
白骨们帮忙!