<html:form action="Lookup" name="lookupForm" type="mystruts.LookupForm" >
改成<html:form action="/Lookup">,应该就好了

解决方案 »

  1.   

    能不用struts的taglib么?用了它的话速度影响非常大,而且你根本无法明白它的源码。
      

  2.   

    所做修改如下://struts-config.xml:<?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.dta"><struts-config>  <form-beans>
        <form-bean name="lookupForm" type=mystruts.LookupForm"/>
      </form-beans>  <action-mappings>
        <action path="/Lookup" type="struts.LookupAction" name="lookupForm" input="/index.jsp">
          <forward name="success" path="/quote.jsp"/> 
          <forward name="failure" path="/index.jsp"/>
        </action>
      </action-mappings>  <message-resources parameter="mystruts.ApplicationResources"/>
    </struts-config>
    //web.xml<?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
      "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd"><web-app>  <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
          <param-name>config</param-name>
          <param-value>/WEB-INF/struts-config.xml</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
      </servlet>  <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
      </servlet-mapping>  <taglib>
        <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
        <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
      </taglib></web-app>
      

  3.   

    谢谢各位的热心帮助。可是问题学是那错误信息。哪位朋友有简单、明了的Struts的例子,发一份给我参考参考吧![email protected]
      

  4.   

    public class LookupAction extends Action{
    ....
     public ActionForward excute(ActionMapping mapping,ActionForm form,
     HttpServletRequest request,HttpServletResponse response)
     throws IOException,ServletException
    ....excute改为execute试试
      

  5.   

    放了几天后不理后,这个问题终于在昨晚搞定!原因是struts-config的设置和ActionForm的问题。