Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Struts2 problem calling Action class

843840Jun 17 2010 — edited Jun 19 2010
I imagine this problem will probably be a breeze for someone out there, so I feel like an idiot for asking this, but I'll ask anyway. I have a form that I'm trying to get to call my Action class, and I'm getting the following error message.
HTTP Status 404 - There is no Action mapped for namespace / and action name ProcessComment.

--------------------------------------------------------------------------------

type Status report

message There is no Action mapped for namespace / and action name ProcessComment.

description The requested resource (There is no Action mapped for namespace / and action name ProcessComment.) is not available.
The header line in my form is as follows:
<s:form action="ProcessComment" method="post">
Here is my struts.xml:
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
	<package name="ghs86reunion" namespace="/" extends="struts-default">
		<!--
			========== Action Mapping Definitions ==============================
		-->
		<action name="ProcessComment" class="action.ProcessComment">
			<result name="SUCCESS">/CommentPage.jsp</result>
			<result name="FAILURE">/CommentPage.jsp</result>
		</action>
	</package>
</struts>
Any advice?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 17 2010
Added on Jun 17 2010
7 comments
575 views