Search code examples
formsurljakarta-eestruts1struts-action

how to specify action url in struts 1


the action as specified below is not found

<form action="editEvaluation.do"  method="post"  >
 ****
</form>

the error is :

message Invalid path /situationAdministrative/evaluation/editEvaluation was requested

but where i write the url as this /GRH/editEvaluation.do , GRH is the name of my project it works fine

this the action mapping in my struts config :

 <action path="/editEvaluation" type="ma.struts.action.situationAdministrative.EditEvaluationAction" />

the url of my jsp is //localhost:8080/GRH/situationAdministrative/evaluation/evaluations.jsp


Solution

  • <html:form action="/editEvaluation">
        ...
    </html:form>