org.apache.jasper.JasperException: /admin/category/typesList.jsp(252,32) According to the TLD or the tag file, attribute test is mandatory for tag if
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:238)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:679)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Validator.validate(Validator.java:1475)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:214)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:238)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:679)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Validator.validate(Validator.java:1475)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:214)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
解决方案 »
- button执行js,调用action的问题
- java web下画图问题!难!
- 对数据库操作的错误
- hql语句正确写法
- 为什么我的word不能另存为xml格式
- 在JBuilder中如何实现打印,打印预览,页面设置的功能(急急急!!!!)
- 连接sqlserver2000错误,提示[SQLServer 2000 Driver for JDBC]Error establishing socket.
- 大数据量转移,如何做更合理??
- 请问怎样用JSP结合数据库生成在HTML中显示的树目录,如同“资源管理器”一样!
- 我想学jsp,希望各位大虾提一点建议。(集思广益,来者有分)
- 上传文件时获取转换工具的路径
- 关于Eclipse中的快捷键
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>出现的问题吧。恩 就是想问你一句呀,在MyEclipse里面怎么找到jst1的uri呢?
String cateid_string = request.getParameter("cateid");
String catename = request.getParameter("catename");
StringBuffer sbcondition= new StringBuffer();//连接查询语句
if(!StringUtil.valiateNull(cateid_string)){//--不为空
cateid_string=StringUtil.convertGBK(cateid_string);
int id = StringUtil.Number(cateid_string);
sbcondition.append("typ_id="+id);
}if(!StringUtil.valiateNull(catename)){
catename=StringUtil.convertGBK(catename);
sbcondition.append("and typ_name="+catename);
/*
sbcondition.append(" and typ_name like '%"+catename+"%' ");模糊查询
*/
}
System.out.println(sbcondition.toString()); //打印SQL语句
PageUtil page = new PageUtil();
page.setPageSize(3);//设置每页显示的数目
page.setPageNo(1);
/*
String pageno = request.getParameter("pageno");//得到页数
if(StringUtil.valiateNull(pageno)){ //pageno 不等于null,Integer.parseInt(pageno)
try {
int tmp = StringUtil.Number(pageno);
page.setPageNo(tmp);
} catch (Exception e) {
// TODO: handle exception
page.setPageNo(1);
}
}*/
//调用业务类完成操作
adminCategoryBiz biz = new adminCategoryBiz();
biz.findCategorySuper(page, "1=1");
//把数据保存在seeion中
HttpSession session = request.getSession();
session.setAttribute("pagecatesuper", page);
//转发到typesList.jsp显示页面
request.getRequestDispatcher("/admin/category/typesList.jsp").forward(request, response);
/admin/category/typesList.jsp(252,32) According to the TLD or the tag file, attribute test is mandatory for tag if 标签错误:检查这个jsp 252 行,应该是c:if test 得地方有问题。