Question

Been banging my head for quiet sometime now as I don't seem to understand why struts is unable to find my action class.

This is my struts.xml

    <?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>
    <package name="default" extends="struts-default">
        <action name="getTutorial" class="org.mypackage.actions.TutotrialAction" method="execute">
            <result name="success">/success.jsp</result>
            <result name="failure">/error.jsp</result>
        </action>
    </package>
</struts>

This is my project structure enter image description here

And finally this is the error that I see enter image description here

Clearly the action seem to be present, not sure why it is unable to find it. Another eye ball would be appreciated!

Was it helpful?

Solution

Small typo:

<action name="getTutorial" class="org.mypackage.actions.TutotrialAction" method="execute">
                                                            ^

should be

<action name="getTutorial" class="org.mypackage.actions.TutorialAction" method="execute">
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top