严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /hello.jsp at line 2623:   
24:   </logic:present>
25: 
26:  <html:form action="/HelloWorld.do" focus="userName">
27:    <bean:message key="hello.jsp.prompt.person"/>
28:    <html:text property="userNme" size="16"maxlength="16"/><br>
29:    <html:submit property="submit" value="Submit"/>
Stacktrace:
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
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:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
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:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
<%@ page contentType="text/html;charset=UTF-8"language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <html:html locale="true">
      <head>
         <title><bean:message key="hello.jsp.title"/></title>
         <html:base/>
       </head>
<body bgcolor="white"><p>
 <h2><bean:message key="hello.jsp.page.heading"/></h2><p>
<html:errors/><p>


 <logic:present name="personbean" scope="request">
 
    <bean:message key="hello.jsp.page.hello"/>
    <bean:write name="personbean"property="useerName"/>!</p>
 
 </logic:present> <html:form action="/HelloWorld.do" focus="userName">
  <bean:message key="hello.jsp.prompt.person"/>
  <html:text property="userNme" size="16"maxlength="16"/><br>
  <html:submit property="submit" value="Submit"/>
  <html:reset/>

</html:form><br>
  <html:img page="/struts-power.gif" alt="Powered by Struts"/>
  </body>
</html:html> 

解决方案 »

  1.   

    <bean:write name="personbean"property="useerName"/>!</p>
    中间少了个空格<bean:write name="personbean"     property="useerName"/>!</p>
      

  2.   

    谢谢 不过现在又报
    严重: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: An exception occurred processing JSP page /hello.jsp at line 2623:   
    24:   </logic:present>
    25: 
    26:  <html:form action="/HelloWorld.do" focus="userName">
    27:    <bean:message key="hello.jsp.prompt.person"/>
    28:    <html:text property="userNme" size="16"maxlength="16"/><br>
    29:    <html:submit property="submit" value="Submit"/>
      

  3.   

    在/HelloWorld.do前面加上你的项目名称试试..如:
    <html:form   action="/admin/adduser"   method="POST">   
      struts-config.xml中写法   
      <action   
                  attribute="addUserForm"   
                  input="/admin/addUser.jsp"   
                  name="addUserForm"   
                  path="/admin/adduser"   
                  scope="request"   
                  type="com.abc.admin.Adduser"   />   
        <forward   name="succeed"   path="/admin/succeed.jsp"   />   
                  <forward   name="fail"   path="/admin/fail.jsp"   />   
      </action>   
      

  4.   

    你的页面中有没有其他语言,如JS,EXTJS等,有时候其他的语言出错,他也报servlet错误