struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd G. Nist" <tn...@bellsouth.net>
Subject RE: Cannot Retrieve Mapping for Action
Date Thu, 29 Aug 2002 12:11:40 GMT
Chandra,

Remove the .do from you action attribute in the form definition:

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html:html>
<head>
</head>
<body>
<html:form  method="post" action="/logon">
.
.
.

HTH.

Regards,
Todd

-----Original Message-----
From: Chandrasekar [mailto:chandrav@wisorindia.soft.net]
Sent: Thursday, August 29, 2002 12:36 AM
To: Struts Users Mailing List
Subject: Cannot Retrieve Mapping for Action


Hi ,
First sorry for a lengthy mail.

Searched the mailing list archive and tried every solution suggested there
...

still nothing ...

I am getting the following error when trying to invoke the login page.(Using
weblogic 6.0)

Aug 29, 2002 9:39:13 AM IST> <Error> <HTTP>
<[WebAppServletContext(6765727,wisor
repwebapp)] Root cause of ServletException
javax.servlet.jsp.JspException: Cannot retrieve mapping for action /logon
        at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:784)
        at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481)
        at jsp_servlet.__login._jspService(__login.java:123)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImp
l.java:213)
        at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSer
vletContext.java:1302)
        at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImp
l.java:1680)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>

Below are my configuration details

web.xml

<servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>application</param-name>
      <param-value>ApplicationResources</param-value>
    </init-param>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
      <param-name>debug</param-name>
      <param-value>2</param-value>
    </init-param>
    <init-param>
      <param-name>detail</param-name>
      <param-value>2</param-value>
    </init-param>
    <init-param>
      <param-name>validate</param-name>
      <param-value>false</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
  </servlet>

 <!-- Standard Action Servlet Mapping -->
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>

struts-config.xml file

<struts-config>
<form-beans>
<form-bean name="loginForm" type="com.wisor.pom.formbeans.LoginFormBean"/>
</form-beans>
<global-forwards>
    <forward   name="loginForm" path="/Login.jsp"/>
</global-forwards>
<action-mappings>
<action path="/logon"
	type="com.wisor.pom.action.LoginAction"
	name="loginForm"
	input="/Login.jsp"
	scope="request"
	validate="true">
<forward name="success" path="/Login.jsp" />
<forward name="failure" path="/Login.jsp" />
</action>
</action-mappings>
</struts-config>

// all my Action and ActionForm classes are available inside the
WEB-INF/classes directory
// JSP pages available inside webapp directory


my JSP page

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html:html>
<head>
</head>
<body>
<html:form  method="post" action="/logon.do">
<html:text property="username" />
<html:text   property="password" />
<html:submit/>

</html:form>
</body>
</html:html>

Thanks
Chandra


--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message