You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Steven Dahlin <St...@hotmail.com> on 2002/02/13 20:37:39 UTC
cannot find actionmappings or actionformbeans collection
I am totally stumped. I cannot figure out the error that is occurring
below:
root cause
javax.servlet.jsp.JspException: Cannot find ActionMappings or
ActionFormBeans collection
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:773)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481)
at org.apache.jsp.login$jsp._jspService(login$jsp.java:73)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Jsp
I have followed the details that various examples give, but the examples
work but mine does not. I am calling a jsp which is setting a certain form
for submitting the results. The login.jsp is :
<%@ taglib uri = "/html" prefix = "html" %>
<%@ taglib uri = "/logic" prefix = "logic" %>
<html:form action = "/loginUser.do"
focus = "UserLog">
<html:hidden property = "role"
value = "user"/>
<html:hidden property = "actn"
value = "login"/>
<b>User:</b>
<html:text property = "UserLog"
size = "20"/>
<b>Password:</b>
<html:text property = "Password"
size = "20"/>
<html:submit value = "Login"/>
</html:form>
The web.xml sets up translation of the *.do with:
<!-- ||||||||||||||| Standard Action Servlet Configuration
||||||||||||||| -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>LogworkResources</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>
The struts-config.xml is as follows:
<struts-config>
<form-beans>
<form-bean name = "userForm"
type = "logwork.entities.Users"/>
<form-bean name = "worklogForm"
type = "logwork.entities.WorkLog"/>
</form-beans>
<global-forwards>
<forward name="login" path="/login.jsp"/>
</global-forwards>
<action-mappings>
<action path = "/loginUser"
type = "logwork.action.UserAction"
name = "userForm"
scope = "request"
input = "/login.jsp">
<forward name = "success"
path = "/confirm.jsp"/>
</action>
</action-mappings>
</struts-config>
logwork.action.UserAction.java sits in the classes/logwork/action directory.
If anyone can help me I would appreciate it.
Thanks,
Steve
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: cannot find actionmappings or actionformbeans collection
Posted by Steven Dahlin <St...@hotmail.com>.
I found the problem was with the data source portion of the
struts-config.xml file
----- Original Message -----
From: "Steven Dahlin" <St...@hotmail.com>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
Sent: Wednesday, February 13, 2002 12:37 PM
Subject: cannot find actionmappings or actionformbeans collection
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>