struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Srilatha Ravuri <SRav...@HNTB.com>
Subject RE: bluestone trail 6
Date Thu, 23 Aug 2001 13:17:16 GMT
I too got the same error.My mistake was in struts-config.xml (which is under
folder /WEB-INF/struts-config.xml).
where I gave a different name for the package and trying out with type as
"logon.LogonForm" and "logon.LogonAction" as in the tutorial.Later I named
my package as logon and corrected it.It worked.

<!-- ========== Form Bean Definitions ===================================
-->
  <form-beans>
    <form-bean name="logonForm" type="logon.LogonForm"/>
  </form-beans>	


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

    <action path="/logon"
	      type="logon.LogonAction"
		  name="logonForm">

Thanks

-----Original Message-----
From: Tamanaei, ITS PersWi C500, DA [mailto:E.Tamanaei@deutschepost.de]
Sent: Thursday, August 23, 2001 7:50 AM
To: 'struts-user@jakarta.apache.org'
Subject: bluestone trail 6
Importance: Low



I tried bluestone Trail 6 
the jsp is simple: 

<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %>

<HTML>
<HEAD><TITLE>Logon</TITLE></HEAD>

<BODY bgcolor='silver'>

<form:form action='logon.do'>
Username:    <form:text property='username'/>
Password:    <form:text property='password'/>
             <form:submit value='OK'/>
</form:form>

</BODY>
</HTML>

I got the following exception: 
"javax.servlet.ServletException: Cannot find ActionMappings or
ActionFormBeans collection "

Thanks for any help! 
Ebi




Mime
View raw message