在struts2中,jsp页面中,如和通过if表达式,将session中为null的值附上一个整数

如图:

    <div class="megas512" style="margin-top: 15px;">
                            <div>
                                <a href="selectByPageId_User.shtml?currentPage=1">首页</a> 
                                <a href="selectByPageId_User.shtml?currentPage=<%=session.getAttribute("prepage")%>">上一页</a>
                                <a href="selectByPageId_User.shtml?currentPage=<%=session.getAttribute("nextpage")%>">下一页</a> 
                                <a href="selectByPageId_User.shtml?currentPage=totalPage">尾页</a>                                
                            </div>
                        </div>

因为我页面第一次进入的时候方法走的不是分页查询的方法,导致上一页、下一页显示为null,这个应该如何进行判断,就是当上一页、下一页里面的session值为null的时候,分别赋值1和2.拜托。想了很久,就是没有想出来应该怎么搞。

2个回答

好像大概可以理解你的意思。

那我觉得你完全可以加入java代码段,定义两个变量来代替session.getAttribute("nextpage")

<%
    int prepage = 1;
    int nextpage = 2;
    if ( session.getAttribute("prepage") != null ) {
        prepage = (int)session.getAttribute("prepage");
        nextpage = (int)session.getAttribute("nextpage");
    }
%>

然后,在你的a标签里面,使用这两个变量就好了

<a href="selectByPageId_User.shtml?currentPage=<%=prepage%>">上一页</a>
<a href="selectByPageId_User.shtml?currentPage=<%=nextpage%>">下一页</a> 
liuzhihu2016
liuzhihu2016 回复祈祷爱绝缘: 好的,谢谢,我就是直接在代码里面写了,修改了代码。
接近 4 年之前 回复
dfsdffe
祈祷爱绝缘 不过这样的问题就是在jsp中会混合java代码,不利于后期维护,我觉得最好的方法还是你在页面第一次进入的时候就想办法获得分页,尽量jsp页面不要有太多java代码。
接近 4 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Python+OpenCV计算机视觉

Python+OpenCV计算机视觉

struts2 我在jsp页面中获取到了list集合中的对象但是就是不显示值

我用struts2在jsp中遍历了一个集合,集合中也有数据就是没法显示,如果用el表达式取对象 可以打印出来,但是取对象的属性就报错 先上代码 // action层 @Controller public class NreportAction extends BaseAction { /** * 内部审计S相关的封装 */ @Resource private NreportService nreportService; // 内审service private List<Nreport> nreportList; private Nreport nreport; public NreportAction(){ System.out.println("进来了"); } // 内审填报页面 public String addUI(){ System.out.println("时空裂缝"); try { // System.out.println("1.先查出上一年没有完成的任务"); // System.out.println("2.查询出纪检监察室下发状态 , 如果下发了,就显示一条记录,让下级部门填写"); nreportList = nreportService.findNotDoPro(); if(nreportList!=null && nreportList.size()>0){ System.out.println("上一年未完成的项目有"+nreportList.size()+"个"); } } catch (Exception e) { System.out.println(e.getMessage()); } return "reportUI"; } DAO层 public class NreportDaoImpl extends BaseDaoImpl<Nreport> implements NreportDao { @Override public List<Nreport> findNotDoPro() { Calendar c=new GregorianCalendar();//新建日期对象 int year=c.get(Calendar.YEAR);//获取年份 int month=c.get(Calendar.MONTH);/ // 获取当前年份 int year=c.get(Calendar.YEAR); // sql语句 select proid from record where state=1 and (year like '%2015%') // 从【记录表】查询 出上一年没有完成的记录,然后根据记录从【内部表】查出项目的List List list = getSession().createSQLQuery( "select proid from record where state=0 and deptType = '内部审计' and (year like \'%" + String.valueOf(year-1) + "%\')").list(); // 遍历List然后根据这个id来去查找林外一张表 String sql = "select * from nreport where nid in("; for(int i=0;i<list.size();i++){ // sql = "where id in(1,2,3)"; // 如果当前获取的这个id不是最后一个id,那么加上‘,’ if(list.get(i)!= list.get(list.size()-1)){ sql+=list.get(i)+","; }else{ sql+=list.get(i)+")"; } } System.out.println(sql+"看看sql长啥样"); // 从【内部表】查出未完成项目的List List<Nreport> list2= getSession().createSQLQuery(sql).list(); return list2; } } jsp <form action="" method="post" enctype="multipart/form-data"> <table width="100%" border="0"> <tr class="t_tit"> <td width="40" align="center">序号</td> <td width="80" align="center">项目名称</td> <td width="80" align="center">审计类型</td> <td width="40" align="center">送审金额</td> <td width="40" align="center">预计审计费</td> <td width="160" align="center">预计审计时间</td> <td width="140" align="center">经费来源</td> <td width="100" align="center">资金性质</td> <td width="60" align="center">状态</td> <td width="60" align="center">备注</td> <td width="60" align="center">删除</td> </tr> <!-- 如果有上一年的已经启动但是没有完成的计划也显示在这里 --> <s:iterator value="nreportList" status="st"> ${nreportList[0] } <s:if test="nreportList!=null"> <tr <s:if test="#st.odd">bgcolor="f8f8f8"</s:if> > <td align="center"><s:property value="nid"/></td> <td align="center"><s:property value="proname"/></td> <td align="center"><s:property value="audittype"/></td> <td align="center"><s:property value="ssmoney"/></td> <td align="center"><s:property value="expeauditmoney"/></td> <td align="center"><s:property value="expeaudittime"/></td> <td align="center"><s:property value="moneyfrom"/></td> <td align="center"><s:property value="moneyfunds"/></td> <td align="center"><s:property value="state"/></td> <td align="center"><s:property value="memo"/></td> </tr></s:if> <s:else>没数据?</s:else> </s:iterator> 如果我 我jsp中写成上面这样 ${nreportList[0] } 就会输出toString格式的对象 [Ljava.lang.Object;@20d77d7d 如果写成 ${nreportList[0].getNid }就报错 错误信息: 十一月 17, 2016 5:09:16 下午 org.apache.catalina.core.ApplicationDispatcher invoke 严重: Servlet.service() for servlet jsp threw exception java.lang.NumberFormatException: For input string: "getNid" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.parseInt(Integer.java:527) at javax.el.ArrayELResolver.coerce(ArrayELResolver.java:161) at javax.el.ArrayELResolver.getValue(ArrayELResolver.java:45) ... ... 页面显示出来表格了,是迭代出来的就是没有数据,都是空的格子 ![图片说明](https://img-ask.csdn.net/upload/201611/17/1479374227_31350.jpg) 求大神指导怎么才能迭代出来数据??? 没有C币 , 下次有了一定加倍赏。。。

struts2中session的疑问

// 上传图片 public String upload() throws Exception { // 实现上传 // 将成功上传的图片名 放在session中 ,用于前台表单显示,并统一提交 String imageName=Common.upload(getFile(), getFileFileName()); List<String> imageNames=(List<String>)session.get("imageNames"); if(imageNames==null){ imageNames=new ArrayList<>(); imageNames.add(imageName); session.put("imageNames", imageNames); }else{ imageNames.add(imageName); session.put("imageNames", imageNames); } System.out.println("session 中imageNames:"+ActionContext.getContext().getSession().get("imageNames")); return upload; } public String manage() throws Exception { System.out.println(ActionContext.getContext().getSession().get("imageNames")); return manage; } 如上:upload方法使用 swfupload 插件上传图片,并将图片名保存在session中用于前台显示,这个方法中的 ActionContext.getContext().getSession().get("imageNames")是可以拿到值的; 而在同一个action中的manage 方法中同样的方法从session中拿到的值 却为空,什么原因啊? 同样jsp 页面中 使用ognl 表达式也没有值。

用el表达式怎么取 hashmap的值?(通过键取值)

[code="html"] <c:forEach items="${hash}" var="li" varStatus="status2"> <c:if test="${status2.index == 0}"> <th class="column" scope="row"><input type="checkbox" id="recordId" name="recordId" value="${li.get(key)}"/></th> </c:if> <td>${li.value }</td> </c:forEach> [/code] 我是想在checkbox的value里放入指定的值。这个值是从hashmap里面取的 。 根据键 可是这样写会报错 。 我知道 在el表达式里hash可以直接 .value .key 但是我要根据 key 来取值怎么弄呢 ? 谢谢 指点一下啊。。。 [b]问题补充:[/b] JasperException: /select/result.jsp(78,104) "${li.["aii"] }" contains invalid expression(s): javax.servlet.jsp.el.ELException: Encountered "[", expected one of [<IDENTIFIER>] JasperException: /select/result.jsp(78,104) "${hash.["aii"] }" contains invalid expression(s): javax.servlet.jsp.el.ELException: Encountered "[", expected one of [<IDENTIFIER>] JasperException: /select/result.jsp(78,104) "${hash.[aii] }" contains invalid expression(s): javax.servlet.jsp.el.ELException: Encountered "[", expected one of [<IDENTIFIER>] JasperException: /select/result.jsp(78,104) "${hash.['aii'] }" contains invalid expression(s): javax.servlet.jsp.el.ELException: Encountered "[", expected one of [<IDENTIFIER>] JasperException: /select/result.jsp(78,104) "${li.['aii'] }" contains invalid expression(s): javax.servlet.jsp.el.ELException: Encountered "[", expected one of [<IDENTIFIER>] [b]问题补充:[/b] 不好意思 方括号 [] 好像不行。。。我都试过了。。

请问如何在jsp页面获取登录成功后的学生信息

``` ```<%@page import="cn.itcauc.domain.Student"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ taglib prefix="s" uri="/struts-tags" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>login success page</title> </head> <body> <h1>登录成功!</h1> <% session.setAttribute("student",Student); Student student = (Stduent)session.getAttribute("student"); %> <h3>学号:<s:property value="${sessionScope.student.getSname()}" /></h3> <h3>姓名:<s:property value="#session.student.sname" /></h3> <h3>性别:<s:property value="#session.student.sex" /></h3> <h3>班级:<s:property value="#session.student.sclass" /></h3> </body> </html>

struts2问题

本人在测试Struts2.0中的表达式语言的时候,程序频频报空指针的错误,可是检查却好像并没有什么错误啊!还真是郁闷了,现在贴出来想和大家一起探讨一下: 首先是一个Book类: package tutorial.model; public class Book { private String isbn; private String title; private double price; public Book() { } public Book(String isbn,String title,dobule price) { this.isbn = isbn; this.title = title; this.price = price; } public String getIsbn() { return isbn; } public void setIsbn(String isbn) { this.isbn = isbn; } public double getPrice() { return price; } public void setPrice(double price) { this.price = price; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } } Action类: BookAction.java package tutorial.action import java.util.LinkedList; import java.util.List; import java.util.Map; import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; import org.apache.struts2.interceptor.ServletRequestAware; import org.apache.struts2.interceptor.SessionAware; import org.apache.struts2.util.ServletContextAware; import tutorial.model.Book; import com.opensymphony.xwork2.ActionSupport; public class OgnlAction extends ActionSupport implements ServletRequestAware,SessionAware,ServletContextAware { private static final long serialVersionUID = 1L; private HttpServletRequest request; private Map <String,String> session; private ServletContext application; private List <Book> books; public void setServletRequest(HttpServletRequest request) { this.request = request; } @SuppressWarnings("unchecked") public void setSession(Map session) { this.session = session; } public void setServletContext(ServletContext application) { this.application = application; } public List <Book> getBooks() { return books; } @Override public String execute() { request.setAttribute("userName","Max From request"); session.put("userName","Max From session"); application.setAttribute("userName","Max From application"); books = new LinkedList <Book>(); books.add(new Book("978-0735619678", "Code Complete, Second Edition", 32.99)); books.add(new Book("978-0596007867", "The Art of Project Management", 35.96)); books.add(new Book("978-0201633610", "Design Patterns: Elements of Reusable Object-Oriented Software", 43.19)); books.add(new Book("978-0596527341", "Information Architecture for the World Wide Web: Designing Large-Scale Web Sites", 25.19)); books.add(new Book("978-0735605350", "Software Estimation: Demystifying the Black Art", 25.19)); return SUCCESS; } } Ognl.jsp <%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%> <%@ taglib prefix="s" uri="/struts-tags"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href=" <%=basePath%>"> <title>Struts OGNL Demo </title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> --> </head> <body> <h3>访问OGNL上下文和Action上下文 </h3> <p>parameters: <s:property value="#parameters.userName"/> </p> <p>request.userName: <s:property value="#request.userName"/> </p> <p>session.userName: <s:property value="#session.userName"/> </p> <p>application.userName: <s:property value="#application.userName"/> </p> <p>attr.userName: <s:property value="#attr.userName"/> </p> <hr/> <h3>用于过滤和投影集合 </h3> <p>Books more than $35 </p> <ul> <s:iterator value="books.{?#this.price>35}"> <li> <s:property value="title"/>-$ <s:property value="price"/> </li> </s:iterator> </ul> <p> The price of "Code Complete,Second Edition"is: <s:property value="books.{?#this.title=='Code Complete,Second Edition'}.{price}[0]"/> </p> <hr/> <h3>构造Map </h3> <s:set name="foobar" value="#{'foo1':'bar1','foo2':'bar2'}"/> <p>The value of key "foo1" is <s:property value="#foobar['foo1']"/> </p> </body> </html> web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <display-name>Struts2 OGNL </display-name> <filter> <filter-name>struts-cleanup </filter-name> <filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp </filter-class> </filter> <filter-mapping> <filter-name>struts-cleanup </filter-name> <url-pattern>/* </url-pattern> </filter-mapping> <filter> <filter-name>struts2 </filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher </filter-class> </filter> <filter-mapping> <filter-name>struts2 </filter-name> <url-pattern>/* </url-pattern> </filter-mapping> </web-app> struts.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <constant name="struts.devMode" value="true"/> <package name="Struts-OGNL-DEMO" extends="struts-default"> <action name="Ognl" class="tutorial.action.OgnlAction"> <result>/Ognl.jsp </result> </action> </package> </struts> 全部错误信息: 2008-7-5 11:17:13 org.apache.catalina.core.AprLifecycleListener init 信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jdk1.5.0_06\bin;D:\Program Files\apache-tomcat-6.0.10\bin 2008-7-5 11:17:14 org.apache.coyote.http11.Http11Protocol init 信息: Initializing Coyote HTTP/1.1 on http-8087 2008-7-5 11:17:14 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 781 ms 2008-7-5 11:17:14 org.apache.catalina.core.StandardService start 信息: Starting service Catalina 2008-7-5 11:17:14 org.apache.catalina.core.StandardEngine start 信息: Starting Servlet Engine: Apache Tomcat/6.0.10 2008-7-5 11:17:15 org.apache.catalina.core.ApplicationContext log 信息: ContextListener: contextInitialized() 2008-7-5 11:17:15 org.apache.catalina.core.ApplicationContext log 信息: SessionListener: contextInitialized() 2008-7-5 11:17:16 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register 信息: Parsing configuration file [struts-default.xml] 2008-7-5 11:17:16 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register 信息: Parsing configuration file [struts-plugin.xml] 2008-7-5 11:17:16 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register 信息: Parsing configuration file [struts.xml] 2008-7-5 11:17:16 org.apache.struts2.config.Settings getLocale 警告: Settings: Could not parse struts.locale setting, substituting default VM locale 2008-7-5 11:17:16 com.opensymphony.xwork2.config.impl.DefaultConfiguration$ContainerProperties setProperty 信息: Overriding property struts.i18n.reload - old value: false new value: true 2008-7-5 11:17:16 com.opensymphony.xwork2.config.impl.DefaultConfiguration$ContainerProperties setProperty 信息: Overriding property struts.configuration.xml.reload - old value: false new value: true 2008-7-5 11:17:17 com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory <clinit> 信息: Setting DefaultObjectTypeDeterminer as default ... 2008-7-5 11:17:17 org.apache.coyote.http11.Http11Protocol start 信息: Starting Coyote HTTP/1.1 on http-8087 2008-7-5 11:17:17 org.apache.jk.common.ChannelSocket init 信息: JK: ajp13 listening on /0.0.0.0:8009 2008-7-5 11:17:17 org.apache.jk.server.JkMain start 信息: Jk running ID=0 time=0/47 config=null 2008-7-5 11:17:17 org.apache.catalina.startup.Catalina start 信息: Server startup in 3328 ms 2008-7-5 11:17:27 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: Caught an exception while evaluating expression 'books.{?#this.price>35}' against value stack java.lang.NullPointerException at ognl.OgnlRuntime$ClassCache.get(OgnlRuntime.java:147) at ognl.OgnlRuntime.getHandler(OgnlRuntime.java:1578)f\ at ognl.OgnlRuntime.getElementsAccessor(OgnlRuntime.java:1545) at ognl.ASTSelect.getValueBody(ASTSelect.java:53) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.ASTChain.getValueBody(ASTChain.java:109) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:310) at com.opensymphony.xwork2.util.OgnlUtil.getValue(OgnlUtil.java:190) at com.opensymphony.xwork2.util.OgnlValueStack.findValue(OgnlValueStack.java:208) at org.apache.struts2.components.Component.findValue(Component.java:254) at org.apache.struts2.components.IteratorComponent.start(IteratorComponent.java:210) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) at org.apache.jsp.Ognl_jsp._jspx_meth_s_005fiterator_005f0(Ognl_jsp.java:257) at org.apache.jsp.Ognl_jsp._jspService(Ognl_jsp.java:118) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595) 2008-7-5 11:17:27 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: NOTE: Previous warning message was issued due to devMode set to true. 2008-7-5 11:17:27 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: Caught an exception while evaluating expression 'books.{?#this.title=='Code Complete,Second Edition'}.{price}[0]' against value stack java.lang.NullPointerException at ognl.OgnlRuntime$ClassCache.get(OgnlRuntime.java:147) at ognl.OgnlRuntime.getHandler(OgnlRuntime.java:1578) at ognl.OgnlRuntime.getElementsAccessor(OgnlRuntime.java:1545) at ognl.ASTSelect.getValueBody(ASTSelect.java:53) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.ASTChain.getValueBody(ASTChain.java:109) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at com.opensymphony.xwork2.util.OgnlUtil.getValue(OgnlUtil.java:194) at com.opensymphony.xwork2.util.OgnlValueStack.findValue(OgnlValueStack.java:238) at org.apache.struts2.components.Property.start(Property.java:136) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) at org.apache.jsp.Ognl_jsp._jspx_meth_s_005fproperty_005f7(Ognl_jsp.java:339) at org.apache.jsp.Ognl_jsp._jspService(Ognl_jsp.java:124) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595) 2008-7-5 11:17:27 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: NOTE: Previous warning message was issued due to devMode set to true. 2008-7-5 16:30:18 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: Caught an exception while evaluating expression 'books.{?#this.price>35}' against value stack java.lang.NullPointerException at ognl.OgnlRuntime$ClassCache.get(OgnlRuntime.java:147) at ognl.OgnlRuntime.getHandler(OgnlRuntime.java:1578) at ognl.OgnlRuntime.getElementsAccessor(OgnlRuntime.java:1545) at ognl.ASTSelect.getValueBody(ASTSelect.java:53) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.ASTChain.getValueBody(ASTChain.java:109) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:310) at com.opensymphony.xwork2.util.OgnlUtil.getValue(OgnlUtil.java:190) at com.opensymphony.xwork2.util.OgnlValueStack.findValue(OgnlValueStack.java:208) at org.apache.struts2.components.Component.findValue(Component.java:254) at org.apache.struts2.components.IteratorComponent.start(IteratorComponent.java:210) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) at org.apache.jsp.Ognl_jsp._jspx_meth_s_005fiterator_005f0(Ognl_jsp.java:257) at org.apache.jsp.Ognl_jsp._jspService(Ognl_jsp.java:118) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595) 2008-7-5 16:30:18 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: NOTE: Previous warning message was issued due to devMode set to true. 2008-7-5 16:30:19 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: Caught an exception while evaluating expression 'books.{?#this.title=='Code Complete,Second Edition'}.{price}[0]' against value stack java.lang.NullPointerException at ognl.OgnlRuntime$ClassCache.get(OgnlRuntime.java:147) at ognl.OgnlRuntime.getHandler(OgnlRuntime.java:1578) at ognl.OgnlRuntime.getElementsAccessor(OgnlRuntime.java:1545) at ognl.ASTSelect.getValueBody(ASTSelect.java:53) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.ASTChain.getValueBody(ASTChain.java:109) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at com.opensymphony.xwork2.util.OgnlUtil.getValue(OgnlUtil.java:194) at com.opensymphony.xwork2.util.OgnlValueStack.findValue(OgnlValueStack.java:238) at org.apache.struts2.components.Property.start(Property.java:136) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) at org.apache.jsp.Ognl_jsp._jspx_meth_s_005fproperty_005f7(Ognl_jsp.java:339) at org.apache.jsp.Ognl_jsp._jspService(Ognl_jsp.java:124) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595) 2008-7-5 16:30:19 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: NOTE: Previous warning message was issued due to devMode set to true. 2008-7-5 16:30:22 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: Caught an exception while evaluating expression 'books.{?#this.price>35}' against value stack java.lang.NullPointerException at ognl.OgnlRuntime$ClassCache.get(OgnlRuntime.java:147) at ognl.OgnlRuntime.getHandler(OgnlRuntime.java:1578) at ognl.OgnlRuntime.getElementsAccessor(OgnlRuntime.java:1545) at ognl.ASTSelect.getValueBody(ASTSelect.java:53) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.ASTChain.getValueBody(ASTChain.java:109) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:310) at com.opensymphony.xwork2.util.OgnlUtil.getValue(OgnlUtil.java:190) at com.opensymphony.xwork2.util.OgnlValueStack.findValue(OgnlValueStack.java:208) at org.apache.struts2.components.Component.findValue(Component.java:254) at org.apache.struts2.components.IteratorComponent.start(IteratorComponent.java:210) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) at org.apache.jsp.Ognl_jsp._jspx_meth_s_005fiterator_005f0(Ognl_jsp.java:257) at org.apache.jsp.Ognl_jsp._jspService(Ognl_jsp.java:118) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595) 2008-7-5 16:30:22 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: NOTE: Previous warning message was issued due to devMode set to true. 2008-7-5 16:30:22 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: Caught an exception while evaluating expression 'books.{?#this.title=='Code Complete,Second Edition'}.{price}[0]' against value stack java.lang.NullPointerException at ognl.OgnlRuntime$ClassCache.get(OgnlRuntime.java:147) at ognl.OgnlRuntime.getHandler(OgnlRuntime.java:1578) at ognl.OgnlRuntime.getElementsAccessor(OgnlRuntime.java:1545) at ognl.ASTSelect.getValueBody(ASTSelect.java:53) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.ASTChain.getValueBody(ASTChain.java:109) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at com.opensymphony.xwork2.util.OgnlUtil.getValue(OgnlUtil.java:194) at com.opensymphony.xwork2.util.OgnlValueStack.findValue(OgnlValueStack.java:238) at org.apache.struts2.components.Property.start(Property.java:136) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) at org.apache.jsp.Ognl_jsp._jspx_meth_s_005fproperty_005f7(Ognl_jsp.java:339) at org.apache.jsp.Ognl_jsp._jspService(Ognl_jsp.java:124) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595) 2008-7-5 16:30:22 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: NOTE: Previous warning message was issued due to devMode set to true. 2008-7-5 16:30:23 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: Caught an exception while evaluating expression 'books.{?#this.price>35}' against value stack java.lang.NullPointerException at ognl.OgnlRuntime$ClassCache.get(OgnlRuntime.java:147) at ognl.OgnlRuntime.getHandler(OgnlRuntime.java:1578) at ognl.OgnlRuntime.getElementsAccessor(OgnlRuntime.java:1545) at ognl.ASTSelect.getValueBody(ASTSelect.java:53) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.ASTChain.getValueBody(ASTChain.java:109) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:310) at com.opensymphony.xwork2.util.OgnlUtil.getValue(OgnlUtil.java:190) at com.opensymphony.xwork2.util.OgnlValueStack.findValue(OgnlValueStack.java:208) at org.apache.struts2.components.Component.findValue(Component.java:254) at org.apache.struts2.components.IteratorComponent.start(IteratorComponent.java:210) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) at org.apache.jsp.Ognl_jsp._jspx_meth_s_005fiterator_005f0(Ognl_jsp.java:257) at org.apache.jsp.Ognl_jsp._jspService(Ognl_jsp.java:118) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595) 2008-7-5 16:30:23 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: NOTE: Previous warning message was issued due to devMode set to true. 2008-7-5 16:30:23 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: Caught an exception while evaluating expression 'books.{?#this.title=='Code Complete,Second Edition'}.{price}[0]' against value stack java.lang.NullPointerException at ognl.OgnlRuntime$ClassCache.get(OgnlRuntime.java:147) at ognl.OgnlRuntime.getHandler(OgnlRuntime.java:1578) at ognl.OgnlRuntime.getElementsAccessor(OgnlRuntime.java:1545) at ognl.ASTSelect.getValueBody(ASTSelect.java:53) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.ASTChain.getValueBody(ASTChain.java:109) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at com.opensymphony.xwork2.util.OgnlUtil.getValue(OgnlUtil.java:194) at com.opensymphony.xwork2.util.OgnlValueStack.findValue(OgnlValueStack.java:238) at org.apache.struts2.components.Property.start(Property.java:136) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) at org.apache.jsp.Ognl_jsp._jspx_meth_s_005fproperty_005f7(Ognl_jsp.java:339) at org.apache.jsp.Ognl_jsp._jspService(Ognl_jsp.java:124) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595) 2008-7-5 16:30:23 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: NOTE: Previous warning message was issued due to devMode set to true. 2008-7-5 16:30:23 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: Caught an exception while evaluating expression 'books.{?#this.price>35}' against value stack java.lang.NullPointerException at ognl.OgnlRuntime$ClassCache.get(OgnlRuntime.java:147) at ognl.OgnlRuntime.getHandler(OgnlRuntime.java:1578) at ognl.OgnlRuntime.getElementsAccessor(OgnlRuntime.java:1545) at ognl.ASTSelect.getValueBody(ASTSelect.java:53) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.ASTChain.getValueBody(ASTChain.java:109) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:310) at com.opensymphony.xwork2.util.OgnlUtil.getValue(OgnlUtil.java:190) at com.opensymphony.xwork2.util.OgnlValueStack.findValue(OgnlValueStack.java:208) at org.apache.struts2.components.Component.findValue(Component.java:254) at org.apache.struts2.components.IteratorComponent.start(IteratorComponent.java:210) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) at org.apache.jsp.Ognl_jsp._jspx_meth_s_005fiterator_005f0(Ognl_jsp.java:257) at org.apache.jsp.Ognl_jsp._jspService(Ognl_jsp.java:118) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595) 2008-7-5 16:30:23 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: NOTE: Previous warning message was issued due to devMode set to true. 2008-7-5 16:30:23 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: Caught an exception while evaluating expression 'books.{?#this.title=='Code Complete,Second Edition'}.{price}[0]' against value stack java.lang.NullPointerException at ognl.OgnlRuntime$ClassCache.get(OgnlRuntime.java:147) at ognl.OgnlRuntime.getHandler(OgnlRuntime.java:1578) at ognl.OgnlRuntime.getElementsAccessor(OgnlRuntime.java:1545) at ognl.ASTSelect.getValueBody(ASTSelect.java:53) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.ASTChain.getValueBody(ASTChain.java:109) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at com.opensymphony.xwork2.util.OgnlUtil.getValue(OgnlUtil.java:194) at com.opensymphony.xwork2.util.OgnlValueStack.findValue(OgnlValueStack.java:238) at org.apache.struts2.components.Property.start(Property.java:136) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) at org.apache.jsp.Ognl_jsp._jspx_meth_s_005fproperty_005f7(Ognl_jsp.java:339) at org.apache.jsp.Ognl_jsp._jspService(Ognl_jsp.java:124) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595) 2008-7-5 16:30:23 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: NOTE: Previous warning message was issued due to devMode set to true. 2008-7-5 16:30:24 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: Caught an exception while evaluating expression 'books.{?#this.price>35}' against value stack java.lang.NullPointerException at ognl.OgnlRuntime$ClassCache.get(OgnlRuntime.java:147) at ognl.OgnlRuntime.getHandler(OgnlRuntime.java:1578) at ognl.OgnlRuntime.getElementsAccessor(OgnlRuntime.java:1545) at ognl.ASTSelect.getValueBody(ASTSelect.java:53) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.ASTChain.getValueBody(ASTChain.java:109) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:310) at com.opensymphony.xwork2.util.OgnlUtil.getValue(OgnlUtil.java:190) at com.opensymphony.xwork2.util.OgnlValueStack.findValue(OgnlValueStack.java:208) at org.apache.struts2.components.Component.findValue(Component.java:254) at org.apache.struts2.components.IteratorComponent.start(IteratorComponent.java:210) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) at org.apache.jsp.Ognl_jsp._jspx_meth_s_005fiterator_005f0(Ognl_jsp.java:257) at org.apache.jsp.Ognl_jsp._jspService(Ognl_jsp.java:118) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595) 2008-7-5 16:30:24 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: NOTE: Previous warning message was issued due to devMode set to true. 2008-7-5 16:30:24 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: Caught an exception while evaluating expression 'books.{?#this.title=='Code Complete,Second Edition'}.{price}[0]' against value stack java.lang.NullPointerException at ognl.OgnlRuntime$ClassCache.get(OgnlRuntime.java:147) at ognl.OgnlRuntime.getHandler(OgnlRuntime.java:1578) at ognl.OgnlRuntime.getElementsAccessor(OgnlRuntime.java:1545) at ognl.ASTSelect.getValueBody(ASTSelect.java:53) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.ASTChain.getValueBody(ASTChain.java:109) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at com.opensymphony.xwork2.util.OgnlUtil.getValue(OgnlUtil.java:194) at com.opensymphony.xwork2.util.OgnlValueStack.findValue(OgnlValueStack.java:238) at org.apache.struts2.components.Property.start(Property.java:136) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) at org.apache.jsp.Ognl_jsp._jspx_meth_s_005fproperty_005f7(Ognl_jsp.java:339) at org.apache.jsp.Ognl_jsp._jspService(Ognl_jsp.java:124) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595) 2008-7-5 16:30:24 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: NOTE: Previous warning message was issued due to devMode set to true. 2008-7-5 16:30:25 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: Caught an exception while evaluating expression 'books.{?#this.price>35}' against value stack java.lang.NullPointerException at ognl.OgnlRuntime$ClassCache.get(OgnlRuntime.java:147) at ognl.OgnlRuntime.getHandler(OgnlRuntime.java:1578) at ognl.OgnlRuntime.getElementsAccessor(OgnlRuntime.java:1545) at ognl.ASTSelect.getValueBody(ASTSelect.java:53) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.ASTChain.getValueBody(ASTChain.java:109) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:310) at com.opensymphony.xwork2.util.OgnlUtil.getValue(OgnlUtil.java:190) at com.opensymphony.xwork2.util.OgnlValueStack.findValue(OgnlValueStack.java:208) at org.apache.struts2.components.Component.findValue(Component.java:254) at org.apache.struts2.components.IteratorComponent.start(IteratorComponent.java:210) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) at org.apache.jsp.Ognl_jsp._jspx_meth_s_005fiterator_005f0(Ognl_jsp.java:257) at org.apache.jsp.Ognl_jsp._jspService(Ognl_jsp.java:118) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595) 2008-7-5 16:30:25 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: NOTE: Previous warning message was issued due to devMode set to true. 2008-7-5 16:30:25 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: Caught an exception while evaluating expression 'books.{?#this.title=='Code Complete,Second Edition'}.{price}[0]' against value stack java.lang.NullPointerException at ognl.OgnlRuntime$ClassCache.get(OgnlRuntime.java:147) at ognl.OgnlRuntime.getHandler(OgnlRuntime.java:1578) at ognl.OgnlRuntime.getElementsAccessor(OgnlRuntime.java:1545) at ognl.ASTSelect.getValueBody(ASTSelect.java:53) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.ASTChain.getValueBody(ASTChain.java:109) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at com.opensymphony.xwork2.util.OgnlUtil.getValue(OgnlUtil.java:194) at com.opensymphony.xwork2.util.OgnlValueStack.findValue(OgnlValueStack.java:238) at org.apache.struts2.components.Property.start(Property.java:136) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) at org.apache.jsp.Ognl_jsp._jspx_meth_s_005fproperty_005f7(Ognl_jsp.java:339) at org.apache.jsp.Ognl_jsp._jspService(Ognl_jsp.java:124) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595) 2008-7-5 16:30:25 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: NOTE: Previous warning message was issued due to devMode set to true. 2008-7-5 16:30:25 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: Caught an exception while evaluating expression 'books.{?#this.price>35}' against value stack java.lang.NullPointerException at ognl.OgnlRuntime$ClassCache.get(OgnlRuntime.java:147) at ognl.OgnlRuntime.getHandler(OgnlRuntime.java:1578) at ognl.OgnlRuntime.getElementsAccessor(OgnlRuntime.java:1545) at ognl.ASTSelect.getValueBody(ASTSelect.java:53) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.ASTChain.getValueBody(ASTChain.java:109) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:310) at com.opensymphony.xwork2.util.OgnlUtil.getValue(OgnlUtil.java:190) at com.opensymphony.xwork2.util.OgnlValueStack.findValue(OgnlValueStack.java:208) at org.apache.struts2.components.Component.findValue(Component.java:254) at org.apache.struts2.components.IteratorComponent.start(IteratorComponent.java:210) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) at org.apache.jsp.Ognl_jsp._jspx_meth_s_005fiterator_005f0(Ognl_jsp.java:257) at org.apache.jsp.Ognl_jsp._jspService(Ognl_jsp.java:118) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595) 2008-7-5 16:30:25 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: NOTE: Previous warning message was issued due to devMode set to true. 2008-7-5 16:30:25 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: Caught an exception while evaluating expression 'books.{?#this.title=='Code Complete,Second Edition'}.{price}[0]' against value stack java.lang.NullPointerException at ognl.OgnlRuntime$ClassCache.get(OgnlRuntime.java:147) at ognl.OgnlRuntime.getHandler(OgnlRuntime.java:1578) at ognl.OgnlRuntime.getElementsAccessor(OgnlRuntime.java:1545) at ognl.ASTSelect.getValueBody(ASTSelect.java:53) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.ASTChain.getValueBody(ASTChain.java:109) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at com.opensymphony.xwork2.util.OgnlUtil.getValue(OgnlUtil.java:194) at com.opensymphony.xwork2.util.OgnlValueStack.findValue(OgnlValueStack.java:238) at org.apache.struts2.components.Property.start(Property.java:136) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) at org.apache.jsp.Ognl_jsp._jspx_meth_s_005fproperty_005f7(Ognl_jsp.java:339) at org.apache.jsp.Ognl_jsp._jspService(Ognl_jsp.java:124) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595) 2008-7-5 16:30:25 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: NOTE: Previous warning message was issued due to devMode set to true. 2008-7-5 16:30:25 com.opensymphony.xwork2.util.OgnlValueStack logLookupFailure 警告: Caught an exception while evaluating expression 'books.{?#this.price>35}' against value stack java.lang.NullPointerException at ognl.OgnlRuntime$ClassCache.get(OgnlRuntime.java:147) at ognl.OgnlRuntime.getHandler(OgnlRuntime.java:1578) at ognl.OgnlRuntime.getElementsAccessor(OgnlRuntime.java:1545) at ognl.ASTSelect.getValueBody(ASTSelect.java:53) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210)

关于一个struts2国际化的处理问题。

现在有一个需求是这样的, 在数据库里面有一个menu菜单表, 需要支持多种语言。 然后把菜单的名称配置到国际化资源文件中,数据库中只配置国际化文件的key. 比如有如下几个字段: menuId menuName prentId URL status 100 menu.user.Manager -1 XXXX.jsp Y 101 menu.modify.user -100 XXXX.jsp Y 102 menu.query.user -100 XXXX.jsp Y 这个菜单表,中的menuName的值,用的是国际化属性ApplicationResouce_en_US.properties 文件的中key; 在action中查询出来后, 放在一个list集合中,然后通过jsp页面的struts2的 <s:iterator value='#session.menuList' var='m'> <s:text name='<"s:property value='#m.menuName'">'/> <s:text name='${m.menuName}'/> </iterator> 如果直接写成这样,<s:text name='menu.user.Manager'/> 就支持. 这样显然不行。 因为struts标记不能嵌套使用,也不能支持EL表达式。 甚至把整个<s:text name='menu.user.Manager'>都统一设置到数据库中. 试了很多种方法,都不行.我都已经绝望了. 实在不行,就在Action循环通过ResourceBound.getBound("资源文件路径",Locale.ENGLISH);然后再设置到集合中, 这种方式,效率实在是比较低. 就没有用了.. 请大家帮我想想办法啊。 实在没有分了啊,.我只有3分. 还是系统送的..

请问一个Struts2的问题,我知道action的执行环境ActionContext里面的request和session等都是一个Map

而我在action中取得HttpServletRequest对象,然后设置name-value,然后在jsp页面中仍然可以通过ognl表达式#request.name从ActionContext中获取到value,我想问是不是ActionContext将HttpServletRequest里面的东西拷贝到ActionContext里面的request(Map)当中了,如果是的话,什么时候的事情呢,谢谢

#session.map为一个map(ognl表达式)取值如下

#session.map的值如下 key和value一一对应,我要通过key取value该怎么取,并把取出来的值放入 <s:a action="">创建新项目</s:a>自定义a标签的action中,该怎么解决,求大神来解答,谢谢ff:{1=2PersonalWorkbench.jsp, 2=project!findall.action, 3=javascript:find(${pro.proId});, 4=rank!rankList.action, 5=javascript:deletepro(${pro.proId});, 6=javascript:endpro(${pro.proId});, 7=task!findtask.action?proname=${pro.proName}&proid=${pro.proId}, 8=#, 9=#, 10=#, 11=jl_bb.jsp?infoid=${info.btaskId}&taskid=${task.taskId}&proname=${pro.proName}&tasksta=${pro.taskstate.taskstaId}, 12=bmdrw.jsp?proname=<%=proname%>&taskid=<%=taskid%>&infoid=<%=infoid%>&tasksta=<%=tasksta %>, 13=#, 14=#, 15=#, 17=#, 16=#, 19=#, 18=#, 21=#, 20=#, 23=#, 22=attach!findall.action?infoid=<%=infoid%>&taskid=<%=taskid%>&proname=<%=proname%>&tasksta=<%=tasksta %>, 25=ldxx('${sma.smaNumber}'), 24=bbxx(${status.index}), 27=2PersonalWorkbench.jsp, 26=#, 29=2PersonalWorkbench.jsp, 28=2PersonalWorkbench.jsp, 31=3FactoryAffairs.jsp, 30=2PersonalWorkbench.jsp, 34=3FactoryAffairs.jsp, 35=3FactoryAffairs.jsp, 32=3FactoryAffairs.jsp, 33=3FactoryAffairs.jsp, 38=#, 39=#, 36=3FactoryAffairs.jsp, 37=3FactoryAffairs.jsp, 42=#, 43=#, 40=#, 41=#, 46=#, 47=#, 44=#, 45=#, 51=#, 50=#, 49=#, 48=#, 55=#, 54=#, 53=#, 52=#, 59=#, 58=#, 57=#, 56=#, 63=#, 62=#, 61=#, 60=#, 68=#, 69=#, 70=#, 71=#, 64=#, 65=#, 66=#, 67=#, 72=#, 73=#, 74=#, 75=#}

求教OJNL取值问题?大神帮帮我

JSP 中通过Struts2标签取值,为什么通过OJNL 可以取到infoType参数为1,但通过 ``` <s:property value="#session.typeMaps[#infoType]"/> ``` 取不到值 ``` <s:property value="#session.typeMaps[1]"/> ``` 可以取到值? 代码: ``` <body> <s:set name="infoType" value="#parameters.infoType[0]"></s:set> <table> <tr><td>■最新<s:property value="#session.typeMaps[#infoType]"/>[缴费专区]</td></tr> <tr><td>■最新<s:property value="#session.typeMaps[1]"/>[缴费专区]</td></tr> <tr><td>■最新<s:property value="#infoType"/>[缴费专区]</td></tr> </table> <s:debug></s:debug> </body> ``` 运行结果 ![图片说明](https://img-ask.csdn.net/upload/201703/25/1490406245_517514.png) 红色框中的“二手货”两条语句取值为什么会不一样。

关于AJAX请求URL中参数的问题

var url ='<=request.getContextPath()%>/jsp/repCreate/alidateFormula.jsp?expressionFormula='+formula 像这么个请求 在目标页面 用request.getParameter('expressionFormula')时候,如果expressionFormula=“ssssssss+sssssssssss”得到后会去掉+号 怎么避免??? [b]问题补充:[/b] formula 值是一个字符串表达式 里面会有+号 传递后 +号会丢失掉

${} 的使用方法 疑问

之前一个项目里,我可以直接用类似 ${sessionScope.userInfo.name } 方法取得Session里的对象内容. 再另外一个项目里 ${} 语句就失效了,要是用 ${} 需要配置什么东西或者导入什么库,么.. 具体环境是 struts spring tomcat oracle 谢谢回复... [b]问题补充:[/b] #sessionScope.userInfo.name 具体格式是怎么样的阿.? ${#sessionScope.userInfo.name} 还是 直接 #sessionScope.userInfo.name 就可以了. 但我试了下.好像都没效果阿...帮忙.再看看吧 [b]问题补充:[/b] 是struts1 .谢谢回复 [b]问题补充:[/b] >${}是EL表达式 要让它起效,需要导入什么库么.或者哪些设置???? [b]问题补充:[/b] 我就是直接用${ex}的.可是却只是把它当作普通的字符串"${ex}"对待了. 刚才看了看.说jsp2支持EL jsp版本和什么有关系?tomcat 还是 struts?

2019 Python开发者日-培训

2019 Python开发者日-培训

150讲轻松搞定Python网络爬虫

150讲轻松搞定Python网络爬虫

设计模式(JAVA语言实现)--20种设计模式附带源码

设计模式(JAVA语言实现)--20种设计模式附带源码

YOLOv3目标检测实战:训练自己的数据集

YOLOv3目标检测实战:训练自己的数据集

java后台+微信小程序 实现完整的点餐系统

java后台+微信小程序 实现完整的点餐系统

三个项目玩转深度学习(附1G源码)

三个项目玩转深度学习(附1G源码)

初级玩转Linux+Ubuntu(嵌入式开发基础课程)

初级玩转Linux+Ubuntu(嵌入式开发基础课程)

2019 AI开发者大会

2019 AI开发者大会

玩转Linux:常用命令实例指南

玩转Linux:常用命令实例指南

一学即懂的计算机视觉(第一季)

一学即懂的计算机视觉(第一季)

4小时玩转微信小程序——基础入门与微信支付实战

4小时玩转微信小程序——基础入门与微信支付实战

Git 实用技巧

Git 实用技巧

Python数据清洗实战入门

Python数据清洗实战入门

使用TensorFlow+keras快速构建图像分类模型

使用TensorFlow+keras快速构建图像分类模型

实用主义学Python(小白也容易上手的Python实用案例)

实用主义学Python(小白也容易上手的Python实用案例)

程序员的算法通关课:知己知彼(第一季)

程序员的算法通关课:知己知彼(第一季)

MySQL数据库从入门到实战应用

MySQL数据库从入门到实战应用

机器学习初学者必会的案例精讲

机器学习初学者必会的案例精讲

手把手实现Java图书管理系统(附源码)

手把手实现Java图书管理系统(附源码)

极简JAVA学习营第四期(报名以后加助教微信:eduxy-1)

极简JAVA学习营第四期(报名以后加助教微信:eduxy-1)

.net core快速开发框架

.net core快速开发框架

玩转Python-Python3基础入门

玩转Python-Python3基础入门

Python数据挖掘简易入门

Python数据挖掘简易入门

微信公众平台开发入门

微信公众平台开发入门

程序员的兼职技能课

程序员的兼职技能课

Windows版YOLOv4目标检测实战:训练自己的数据集

Windows版YOLOv4目标检测实战:训练自己的数据集

HoloLens2开发入门教程

HoloLens2开发入门教程

微信小程序开发实战

微信小程序开发实战

Java8零基础入门视频教程

Java8零基础入门视频教程

Python可以这样学(第一季:Python内功修炼)

Python可以这样学(第一季:Python内功修炼)

C++语言基础视频教程

C++语言基础视频教程

Python可以这样学(第四季:数据分析与科学计算可视化)

Python可以这样学(第四季:数据分析与科学计算可视化)

网络工程师小白入门--【思科CCNA、华为HCNA等网络工程师认证】

网络工程师小白入门--【思科CCNA、华为HCNA等网络工程师认证】

Python数据分析与挖掘

Python数据分析与挖掘

微信小程序开发实战之番茄时钟开发

微信小程序开发实战之番茄时钟开发

软件测试2小时入门

软件测试2小时入门

相关热词 c# 局部 截图 页面 c#实现简单的文件管理器 c# where c# 取文件夹路径 c# 对比 当天 c# fir 滤波器 c# 和站 队列 c# txt 去空格 c#移除其他类事件 c# 自动截屏
立即提问