Topic: struts in action 第一章的例子!有问题?

  Print this page

1.struts in action 第一章的例子!有问题? Copy to clipboard
Posted by: handsome112233
Posted on: 2006-05-29 22:20

看了struts in action做了第一章的例子!
当在浏览器里打入http://localhost:8080/register/register.jsp里出现如下问题!
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: /register.jsp(13,7) According to the TLD attribute property is mandatory for tag text
  at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
  at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428)
  at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236)
  at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:460)
  at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:707)
  at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
  at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:1070)
  at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:507)
  at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:707)
  at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
  at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:1070)
  at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:1076)
  at org.apache.jasper.compiler.Node$Root.accept(Node.java:232)
  at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
  at org.apache.jasper.compiler.Validator.validate(Validator.java:607)
  at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:230)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
  at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
  at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
  at java.lang.Thread.run(Thread.java:595)

register.jsp (0.72k)

2.Re:struts in action 第一章的例子!有问题? [Re: handsome112233] Copy to clipboard
Posted by: handsome112233
Posted on: 2006-05-29 22:22

因为附件不能上传太大,所以不能上传所有的文件!

struts-config.xml (0.63k)

3.Re:struts in action 第一章的例子!有问题? [Re: handsome112233] Copy to clipboard
Posted by: handsome112233
Posted on: 2006-05-29 22:23

go

RegisterAction.java (0.79k)

4.Re:struts in action 第一章的例子!有问题? [Re: handsome112233] Copy to clipboard
Posted by: handsome112233
Posted on: 2006-05-29 22:23

go

RegisterForm.java (0.6k)

5.Re:struts in action 第一章的例子!有问题? [Re: handsome112233] Copy to clipboard
Posted by: handsome112233
Posted on: 2006-05-29 22:23

go

UserDirectory.java (3.1k)

6.Re:struts in action 第一章的例子!有问题? [Re: handsome112233] Copy to clipboard
Posted by: handsome112233
Posted on: 2006-05-29 22:23

go

UserDirectoryException.java (0.12k)


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923