问题描述:    myeclipse下开发项目,spring+struts2+hibernate并且项目用tomcat启,但是始终报如下的错误
    启动过程中没有报错,只是访问某个页面时报错HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception javax.servlet.ServletException: org.apache.jasper.JasperException: org.apache.jasper.JasperException: /WEB-INF/jsp/admin/introduction/article/List.jsp(119,24) According to TLD or attribute directive in tag file, attribute list does not accept any expressions
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
root cause org.apache.jasper.JasperException: org.apache.jasper.JasperException: /WEB-INF/jsp/admin/introduction/article/List.jsp(119,24) According to TLD or attribute directive in tag file, attribute list does not accept any expressions
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:565)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:354)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413)
org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:139)
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178)
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253)
com.mainone.interceptor.LoginInterceptor.doIntercept(LoginInterceptor.java:31)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)是什么原因啊?

解决方案 »

  1.   

      看下你的标签库导入是否有问题,比如说:
    <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
    改为:
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>导入uri统一资源定位符是以前老的,现在sun公司改写了,所有出现异常
       你看到你的页面,然后看下引入的什么标签库,到工程的WEB-INFO 到的对应的tld文件,然后里面有个<uri>值,复制到你的问题页面!
      

  2.   

    这就是页面解析错误,看看后台传过来的值到前台页面是不是出错了,因为错误出现在页面上,是JSP页面的错,有时间吧JSP页面发下
      

  3.   

    估计是你使用jstl的问题 
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    页面上改成这个
      

  4.   

      首先是500表示页面解析错误。。
      org.apache.jasper.JasperException: org.apache.jasper.JasperException: /WEB-INF/jsp/admin/introduction/article/List.jsp(119,24) According to TLD or attribute directive in tag file, attribute list does not accept any expressions
      你的界面的(119,24)不能接受任何表达式。。
        你的这个List.jsp中的一个集合在参数传递的时候出错的
       
      

  5.   

    /WEB-INF/jsp/admin/introduction/article/List.jsp(119,24) According to TLD or attribute directive in tag file, attribute list does not accept any expressions 
    看看你的List.jsp(119,24)是什么东东
      

  6.   

    我的页面上就是用的struts2的标签,我发现如果去掉相关struts2的问题就的确不报错了,页面相应的内容是<td> 
    <s:select headerKey="" headerValue="不限状态" list="#{'0':'不发布','1':'发布'}" name="publish" id="publish" listKey="key" listValue="value" cssStyle="width:100px" value="%{#request.publish}"></s:select>
    </td>