Attribute name invalid for tag form according to TLD异常解决办法

         在Eclipse中开发Struts应用程序时,当调用JSP时遇到Attribute name invalid for tag form according to TLD异常,解决办法是将JSP文件中<htm:form></html:form>修改为<form></form>.笔者试途添加JSTL类库,未能解决问题,也可能是Struts包中相关类库未添加.

Struts问题:Attribute name invalid for tag form according to TLD

12-07

我按照Mastering struts 书上写了一个例子,如下,lookupForm和lookuoAction都有rnindex.jsp如下:rn...rnrn rn rn Symbol:rn rn rn rn rn rn rn rn...rn运行是出错:rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: /index.jsp(34,1) Attribute name invalid for tag form according to TLDrn org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:83)rn org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:402)rn org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:274)rn org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1018)rn org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:739)rn org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1458)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)rn org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2230)rn org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2236)rn org.apache.jasper.compiler.Node$Root.accept(Node.java:485)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)rn org.apache.jasper.compiler.Validator.validate(Validator.java:1515)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:247)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rnrnrnnote The full stack trace of the root cause is available in the Tomcat logs.rnrn是什么原因?

Attribute xmlns invalid for tag html according to TLD

03-31

org.apache.jasper.JasperException: /html/index.jsp(7,0) Attribute xmlns invalid for tag html according to TLDrn org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)rn org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)rn org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:234)rn org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:989)rn org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:710)rn org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)rn org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)rn org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)rn org.apache.jasper.compiler.Node$Root.accept(Node.java:456)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)rn org.apache.jasper.compiler.Validator.validate(Validator.java:1489)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:157)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn oa.dailywork.bussiness.Encoding.doFilter(Encoding.java:30)rnrn请高手指点,不知道是什么问题rn清高手帮忙,非常感谢

Attribute vaule invalid for tag property according to TLD

07-07

rn找了几个小时没找到不知道哪块出来问题,报标签问题,我是按照视频上写的,请大神们看下,哪块出的问题,谢谢了!rnrnrnrnrnrnrn异常信息rnrn[code=html]HTTP Status 500 - /form/ShowSjzdfl.jsp (line: 25, column: 66) Attribute vaule invalid for tag property according to TLDrnrntype Exception reportrnrnmessage /form/ShowSjzdfl.jsp (line: 25, column: 66) Attribute vaule invalid for tag property according to TLDrnrndescription The server encountered an internal error that prevented it from fulfilling this request.rnrnexceptionrnrnorg.apache.jasper.JasperException: /form/ShowSjzdfl.jsp (line: 25, column: 66) Attribute vaule invalid for tag property according to TLDrn org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)rn org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:443)rn org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:237)rn org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1266)rn org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:876)rn org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1553)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2392)rn org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2444)rn org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:895)rn org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1553)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2392)rn org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2444)rn org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2450)rn org.apache.jasper.compiler.Node$Root.accept(Node.java:474)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2392)rn org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1845)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:218)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:662)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:364)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:731)rn org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)rn org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)rn com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:362)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:266)rn org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252)rn org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:90)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:130)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)rn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:544)rn org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)[/code]rnrnrn获取getSjzdfl.action出的500错误rn[code=java]d.add(61,6,"数据字典分类","getSjzdfl.action","","main");rn rn for(var i=0;irnrnrnrn rn rn /form/ShowSjzdfl.jsprn rn rn rnrnrnrnrn[/code]rnrnrnapplicationContext.xmlrnrn[code=java] rn rn rn rn rn rnrnrn rn rn rn rn rn [/code]rnrnShowSjzdfl.jsprnrnrn[code=java]<%@ page language="java" contentType="text/html; charset=gb2312"rn pageEncoding="gb2312"%>rn<%@ taglib prefix="s" uri="/struts-tags"%>rnrnrnrn rn 数据字典rnrnrn rn rn 录入数据字典分类rn rn rn rn rn 序号rn 启用rn 选项rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrnrnrn[/code]

/login.jsp(39,1) Attribute name invalid for tag form according to TL

05-07

org.apache.jasper.JasperException: /login.jsp(39,1) Attribute name invalid for tag form according to TLD rnorg.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) rnorg.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) rnorg.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236) rnorg.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:986) rnorg.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:706) rnorg.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1442) rnorg.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166) rnorg.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216) rnorg.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:726) rnorg.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1442) rnorg.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166) rnorg.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216) rnorg.apache.jasper.compiler.Node$Visitor.visit(Node.java:2222) rnorg.apache.jasper.compiler.Node$Root.accept(Node.java:457) rnorg.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166) rnorg.apache.jasper.compiler.Validator.validate(Validator.java:1484) rnorg.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167) rnorg.apache.jasper.compiler.Compiler.compile(Compiler.java:296) rnorg.apache.jasper.compiler.Compiler.compile(Compiler.java:277) rnorg.apache.jasper.compiler.Compiler.compile(Compiler.java:265) rnorg.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564) rnorg.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302) rnorg.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) rnorg.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) rnjavax.servlet.http.HttpServlet.service(HttpServlet.java:803) rnrn请高手指点,不知道是什么问题,有人说要添加必要的包,可我已经都添加了(hibernate-3.2.6.ga/struts-1.3.9-all/sqlserver2000三个驱动包)只不知道还差什么必要的包了,清高手帮忙,非常感谢

struts2标签报错Attribute list invalid for tag set according to TLD

06-26

我的网页报这个错误rnorg.apache.jasper.JasperException: org.apache.jasper.JasperException: /core/companyStyleInvite.jsp(230,4) Attribute list invalid for tag set according to TLDrnorg.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:565)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:354)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:136)rn org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:175)rn com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:309)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:218)rn com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:177)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)rn com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)rn com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.intercept(ParametersInterceptor.java:147)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)rn com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:105)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)rn org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:80)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)rn org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:204)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)rn com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:74)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)rn com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:120)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)rn org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:59)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)rn org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:174)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)rn com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:115)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)rn com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:143)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)rn com.opensymphony.xwork2.interceptor.PrepareInterceptor.intercept(PrepareInterceptor.java:115)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)rn org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:156)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)rn com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:124)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)rn com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:180)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)rn org.apache.struts2.impl.StrutsActionProxy$1.call(StrutsActionProxy.java:27)rn org.apache.struts2.impl.StrutsActionProxy$1.call(StrutsActionProxy.java:26)rn org.apache.struts2.impl.RequestContextImpl.callInContext(RequestContextImpl.java:152)rn org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:25)rn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:330)rn org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:256)rn kf.base.servlet.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:42)rn org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)rnrnrnroot cause rnrn出错的代码是rnrn 是否浮动于任何元素之上:rn <%rn pageContext.setAttribute("yesNo", SystemDictionary.getItems(IDicContants.YES_NO));rn %>rn rn 这段错了rn rn rn rn头文件时rn<%@ page contentType="text/html; charset=utf-8" %>rn<%@ taglib prefix="s" uri="/struts-tags" %>rn<%@ page import="kf.core.web.*"%>rnrnrn请问要怎么改啊

在使用jstl时,这个异常咋回事?According to TLD or attribute directive in tag file, attribute value

11-04

我在用tomcat5.0+jstl中,使用标准标签库时,本来可以正常运行,但不知怎的却报出了rnrn这样的异常:rnHTTP Status 500 - rnrn-----------------------------------------------------------------------------rnrn---rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from rnrnfulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: /c_out.jsp(33,0) According to TLD or rnrnattribute directive in tag file, attribute value does not accept any rnrnexpressionsrn org.apache.jasper.compiler.DefaultErrorHandler.jspErrorrnrn(DefaultErrorHandler.java:83)rn org.apache.jasper.compiler.ErrorDispatcher.dispatchrnrn(ErrorDispatcher.java:402)rn org.apache.jasper.compiler.ErrorDispatcher.jspErrorrnrn(ErrorDispatcher.java:186)rn rnrnorg.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributesrnrn(Validator.java:984)rn org.apache.jasper.compiler.Validator$ValidateVisitor.visitrnrn(Validator.java:739)rn org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1458)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2176)rn org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2226)rn org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2232)rn org.apache.jasper.compiler.Node$Root.accept(Node.java:485)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2176)rn org.apache.jasper.compiler.Validator.validate(Validator.java:1515)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:253)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:459)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)rn org.apache.jasper.JspCompilationContext.compilernrn(JspCompilationContext.java:552)rn org.apache.jasper.servlet.JspServletWrapper.servicernrn(JspServletWrapper.java:291)rn org.apache.jasper.servlet.JspServlet.serviceJspFilernrn(JspServlet.java:301)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rnrnrnnote The full stack trace of the root cause is available in the Tomcat logs.rnrnrn-----------------------------------------------------------------------------rnrn---rnrnApache Tomcat/5.0.14rnrn代码是这样写的:rnrn<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>rn<%@ page contentType="text/html; charset=gb2312" language="java" %>rn<%@page isELIgnored="false"%>rnrnrn JSTL: c:out的使用rnrnrn rn<% session.setAttribute("test_session","testValue_session");%>rn<% request.setAttribute("test_request","testValue_request");%>rn<% application.setAttribute("test_application","testValue_application");%>rn<% request.setAttribute("test_all","testValue_request");%>rn<% session.setAttribute("test_all","testValue_session");%>rn<% application.setAttribute("test_all","testValue_application");%>rnrn 输出一个字符串:rnrn 带有body的c:out标签,但是body不输到客户端。rn<% for(int i=0;i<5;i++)rnrn%>rnrn<% out.println("i");rn i++;rn%>rnrn<% %>rn rnrnrn 获得session中的属性:rnrn 获得request中的属性:rnrn 获得application中的属性:rnrn 测试表达式语言优先获得哪个属性:rnrn 输出一个默认值:rnrnrnrnrnrn并且我也已正确将jstl.jar拷贝到了WEB-INF\lib中。rn这个异常:According to TLD or attribute directive in tag file, attribute value rnrndoes not accept any expressionsrn如何解决呀?我从装了tomcat5.0也不行!

According to TLD, tag html:options must be empty, but is not

05-14

错误提示:rnorg.apache.jasper.JasperException: /person/Add_person.jsp(79,52) According to TLD, tag html:options must be empty, but is notrn org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)rn org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)rn org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:132)rn org.apache.jasper.compiler.Parser.parseBody(Parser.java:1626)rn org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)rn org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1272)rn org.apache.jasper.compiler.Parser.parseElements(Parser.java:1449)rn org.apache.jasper.compiler.Parser.parseBody(Parser.java:1657)rn org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)rn org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1272)rn org.apache.jasper.compiler.Parser.parseElements(Parser.java:1449)rn org.apache.jasper.compiler.Parser.parseBody(Parser.java:1657)rn org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)rn org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1272)rn org.apache.jasper.compiler.Parser.parseElements(Parser.java:1449)rn org.apache.jasper.compiler.Parser.parse(Parser.java:133)rn org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)rn org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)rn org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.rnrnrn--------------------------------------------------------------------------------rnrnrn出问题的代码:rn 职称:rn rn rn rnrnrn这里property是一个ArrayList对象 是我在登陆页面中保存在session中的对象,rn我在测试页面中能够打印出ArrayList对象的内容rn各位请指点一下 问题出在哪了????

c:out value="$test_session"时出错According to TLD or attribute directive in tag file, attribute value does not accept any expr

07-09

在做C:OUT标签时出现这样的错误提示.rnHTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: /ch15/c_cou.jsp(31,0) According to TLD or attribute directive in tag file, attribute value does not accept any expressionsrn org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)rn org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)rn org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)rn org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:941)rn org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:696)rn org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)rn org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)rn org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)rn org.apache.jasper.compiler.Node$Root.accept(Node.java:456)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)rn org.apache.jasper.compiler.Validator.validate(Validator.java:1475)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:214)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.rnrnrnrnrnrn代码如下:rn_______________________rnrn<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>rn<%@ page contentType="text/html; charset=gb2312" language="java" errorPage=""%>rnrnrn JSTL: c:out的使用rnrnrn rn<% session.setAttribute("test_session","testValue_session");%>rn<% request.setAttribute("test_request","testValue_request");%>rn<% application.setAttribute("test_application","testValue_application");%>rn<% request.setAttribute("test_all","testValue_request");%>rn<% session.setAttribute("test_all","testValue_session");%>rn<% application.setAttribute("test_all","testValue_application");%>rnrn 输出一个字符串:rnrn 带有body的c:out标签,但是body不输到客户端。rn<% for(int i=0;i<5;i++)rnrn%>rnrn<% out.println("i");rn i++;rn%>rnrn<% %>rn rnrnrn 获得session中的属性:rnrn 获得request中的属性:rnrn 获得application中的属性:rnrn 测试表达式语言优先获得哪个属性:rnrn 输出一个默认值:rnrnrnrnrnrn我看过了.是出错.rn为什么.怎样解决?请指点.rn

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试