org.apache.jasper.JasperException 编译错误

解决方案 »

  1.   

    struts-config.xml==><action-mappings>标记中对应path="/HelloWorld"的<action/>标记里,配属性
    validat="true" input="/yourinput.jsp"
      

  2.   

    sorry,看这个struts-config.xml==><action-mappings>标记中对应path="/HelloWorld"的<action/>标记里,配属性
    validate="true" input="/yourinput.jsp"
      

  3.   

    我的struts-config是这个样子的:<?xml version="1.0" encoding="ISO-8859-1" ?><!DOCTYPE struts-config PUBLIC
              "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
              "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"><!--
         This is the Struts configuration file for the "Hello!" sample application
    --><struts-config>    <!-- ======== Form Bean Definitions =================================== -->
        <form-beans>
            <form-bean name="HelloForm" type="hello.HelloForm"/>
        </form-beans>  <!-- ========== Action Mapping Definitions ============================== -->
      <action-mappings>
        <!-- Say Hello! -->
        <action    path      = "/HelloWorld"
                   type      = "hello.HelloAction"
                   name      = "HelloForm"
                   scope     = "request"
                   validate  = "true"
                   input     = "/hello.jsp"
         >
            <forward name="SayHello" path="/hello.jsp" />
        </action>
      </action-mappings>  <!-- ========== Message Resources Definitions =========================== -->
      <message-resources parameter="com.youcompany.struts.ApplicationResources" />
    </struts-config>
      

  4.   

    按要求设置完还是不能返回,xunyiren!!帮帮我!加我MSN:[email protected]希望和你成为朋友
      

  5.   

    你在你的ActionForm加上几条语句,看看到底你的userName等于什么,可以将form的method设为get以方便调试
      

  6.   

    ok ! let me hv a try.