为什么js在这个页面不执行
com.susssoft.xygl.dao.MemberDao part=new
com.susssoft.xygl.dao.MemberDao();
com.susssoft.xygl.dao.FileDao fd=new
com.susssoft.xygl.dao.FileDao();
String user=(String)session.getAttribute( "ACCOUNT ");
String ifmem1=request.getParameter( "ifmember ");
String typeid=request.getParameter( "typeid ");
if( "2 ".equals(ifmem1))
{
if (part.checkifvipmember(user) <1){
out.print( " <script> alert( '您目前不是vip会员,没有执行操作的权限! ') </script> ");
out.print( " <script> window.history.go(-1); </script> ");
}
else{
//fd.Vnumber(operation.transEncoding(request.getParameter( "id ")));
}
}
else if( "1 ".equals(ifmem1)){
if (part.checkifmember(user) <1){
out.print( " <script> alert( '您目前不是会员,没有执行操作的权限! ') </script> ");
//out.print( " <script> window.history.go(-1); </script> ");
}
else{
//fd.Vnumber(operation.transEncoding(request.getParameter( "id ")));
}
}else{
//fd.Vnumber(operation.transEncoding(request.getParameter( "id ")));
}
------解决方案--------------------唯一的可能性就是你的 if (part.checkifvipmember(user) <1){条件不成立
------解决方案--------------------呵呵。。。。打印一下if判断语句的值看看呢!!!!!
------解决方案--------------------也许真如楼上所说,是你的判断条件出问题了!!
好好检查一下吧!!