struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Weber <antonio.we...@akt-infosys.de>
Subject Where is the bug in my config ?
Date Mon, 03 Sep 2001 13:38:12 GMT
Hi !!

I have a jsp-site with this form:
   <html:form action="/LookupAction.do">
When I want call the site I get a 500 internal server error.
Looking into the logs show me this:

<03.09.2001 15:32:16 CEST> <Error> <HTTP>
<[WebAppServletContext(7676648,DefaultWebApp,/DefaultWebApp)] Root cause of
ServletException
javax.servlet.jsp.JspException: Cannot retrieve mapping for action
/LookupAction

where is the problem ?

my web.xml says:

	<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>
		<init-param>
			<param-name>validate</param-name>
			<param-value>true</param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<!-- Standard Action Servlet Mapping -->
	<servlet-mapping>
		<servlet-name>action</servlet-name>
		<url-pattern>*.do</url-pattern>
	</servlet-mapping>
        (the taglibs from struts)

and my struts-config.xml looks like this:

<struts-config>


  <!-- ========== Form Bean Definitions ===================================
-->
  <form-beans>
        <form-bean name="LookupActionForm"
type="lookup.servlets.LookupActionForm"/>
  </form-beans>


  <!-- ========== Global Forward Definitions ==============================
-->
  <global-forwards>

    <forward   name="start"                 path="/index.jsp"/>

  </global-forwards>


  <!-- ========== Action Mapping Definitions ==============================
-->
  <action-mappings>

    <!-- lesson1 action -->
    <action path="/LookupAction" type="lookup.servlets.LookupAction"
name="LookupActionForm" input="/lookup/lookups.jsp">
    </action>    
  </action-mappings>
</struts-config>

          

Mime
View raw message