You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Don Dumrauf <Do...@BlackBox.com> on 2002/03/13 20:30:54 UTC

RE: More problems: No action instance for path /login could be cr eate d...

Are you using a forward or action in your jsp?  If using a forward you'll
need an entry in <global-forwards>.  If you're using an action in an
<html:form> don't use .do

-----Original Message-----
From: lindsay.hamoudi@bt.com [mailto:lindsay.hamoudi@bt.com]
Sent: Wednesday, March 13, 2002 1:43 PM
To: struts-user@jakarta.apache.org
Subject: More problems: No action instance for path /login could be
create d...


Ok my login.jsp is loading fine, and the ActionForm (LoginForm) is working
OK because error messages are being returned OK.  But when I submit valid
entries (i.e. when my Action class, LoginAction, should kick in) - I get
this error message:

"Status code:500 request:R( /struts-SACT + /login.do + null) msg:No action
instance for path /login could be created"

I'm assuming this is not a problem with my LoginAction class because it
can't even create an instance.  It must be something to do with the dreaded
struts-config.xml file.  Here's what I've got:

<struts-config>
   <!-- ========== Data Source Configuration ===============================
-->
   <!-- ========== Form Bean Definitions ===================================
-->
   <form-beans>
      <!-- Login form bean -->
      <form-bean name="loginForm"
type="zeus.generator.web.model.LoginForm"/>
   </form-beans>
   <!-- ========== Global Forward Definitions ==============================
-->
   <global-forwards>
      <forward name="login" path="/login.jsp"/>
      <forward name="success" path="/home.do"/>
   </global-forwards>
   <!-- ========== Action Mapping Definitions ==============================
-->
   <action-mappings>
      <!-- Process a user login -->
      <action path="/login" type="zeus.generator.web.controller.LoginAction"
name="loginForm" validate="true" scope="request" input="/login.jsp">
         <forward name="success" path="/home.do"/>
      </action>
      <!-- Process a request for home page-->
      <action path="/home" type="zeus.generator.web.controller.HomeAction">
         <forward name="success" path="/home.jsp"/>
      </action>
      <!-- The standard administrative actions available with Struts -->
      <!-- These would be either omitted or protected by security -->
      <!-- in a real application deployment -->
      ....... Bla bla bla (I never touched these so they're OK)
   </action-mappings>
</struts-config>


My classes are in the correct packages - I know this (erm...) for definite.
What ELSE could be causing this?  Incidentally, the JSP form submits to
/login using the html:form tag.

Many many thanks if someone can help

Lindsay

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


****************************************************************************
****
This email and any files transmitted with it are confidential and are
intended for the sole use of the individual to whom they are addressed.
Black Box Corporation reserves the right to scan all e-mail traffic for
restricted content and to monitor all e-mail in general. If you are not the
intended recipient or you have received this email in error, any use,
dissemination or forwarding of this email is strictly prohibited. If you
have received this email in error, please notify the sender by replying to
this email.