facebook

struts action mappings

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #272928 Reply

    scolucci
    Member

    I am a newbie with MyEclipse (not with struts). I attempt to add an action-mapping to struts-config.xml, either by editing the file directly or using the MyEclipse Workbench IDE and when I submit a form to the struts action object that I created I get an HTTP Status 404 (The requested resource is not available). Prior to using MyEclipse, I have never had an issue with action-mappings. The snippet from struts-config.xml is;

    <action
    attribute=”teamMemberForm”
    input=”/teamMember.jsp”
    name=”teamMemberForm”
    path=”/teamMember”
    scope=”request”
    type=”com.imanager.struts.action.TeamMemberAction”>
    <forward name=”success” path=”/home.jsp” />
    <forward name=”failure” path=”/teamMember.jsp” />
    </action>

    When I do a submit using JavaScript:

    function mySubmit(myForm) {
    var formObj = document.forms[myForm];
    formObj.action = “/teamMember”;
    formObj.submit();
    }

    I get the HTTP Status 404 error

    So, it appears that the “/teamMember” url cannot be properly mapped. Anyone have any ideas why not? Thanks

    /sc

    #272929

    scolucci
    Member

    struts action mapping

    #272963

    Loyal Water
    Member

    I suggest you go through this Struts Quickstart doc. You will get an idea on how to develop struts applications with MyEclipse:-
    http://myeclipseide.com/enterpriseworkbench/help/index.jsp?topic=/com.genuitec.myeclipse.doc/html/quickstarts/struts/index.html

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: struts action mappings

You must be logged in to post in the forum log in