-----Ursprüngliche Nachricht-----
I think in your jsp
<html:form action="/example">
</html:form>
has to be
<html:form action="example.do">
</html:form>
if you have told your web.xml to map all *.do requests
to struts like this
<servlet>
<servlet-name>YourAppName</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>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>YourAppName</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
Hope that helps
Peter
Von: Mariano Garcia [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 15. November 2005 12:15
An: [email protected]
Betreff: Cannot find ActionMappings or ActionFormBeans collection
Hi guys,
I have searched some posts about this subject, but not a valid solution
was provided. I get an error and I don't know how to solve it, and I
have not found a solution searching the web. The error is the following:
javax.servlet.ServletException: Cannot find ActionMappings or
ActionFormBeans collection
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:758)
[...]
My application is very easy, so it must be a typo or some error in my
config files. This is the code:
*** jsp page ***
[...]
<html:form action="/example">
</html:form>
[...]
*** struts-config.xml ***
<form-beans>
<form-bean
name="MyActionForm"
type="org.apache.struts.action.DynaActionForm">
<form-property
name="prop1"
type="String"/>
<form-property
name="prop2"
type="String"/>
</form-bean>
</form-beans>
<action-mappings>
<action
path="/example"
type="es.kiko.MyAction"
name="MyActionForm"
input="/jsp/example.jsp"
scope="request"
unknown="false"
validate="false">
<forward
name="success"
path="/jsp/result.jsp"/>
</action>
</action-mappings>
Any help?
Thanks a lot,
--
Mariano García González :: Analista Programador
-----------------------------------------------
Entel IT Consulting, SA
Tlf. 91 567 07 36
Mobile. 619 08 70 90
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]