0

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!

tawheed
  • 5,565
  • 9
  • 36
  • 63

1 Answers1

0

Small typo:

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

should be

<action name="getTutorial" class="org.mypackage.actions.TutorialAction" method="execute">
Reimeus
  • 158,255
  • 15
  • 216
  • 276