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