Spring - HTTP Status 404 - The requested resource is not available -
i have 404 error when requesting page. have users page list of objects user can click on carry out number of transactions, add, edit etc.
the controller it
@requestmapping(value="/main/user/setter/addpage/", method = requestmethod.get) public string getaddpage(@requestparam("userid") integer userid, modelmap model) { module module = new module(); model.addattribute("userid", userid); model.addattribute("module", module); return "/main/user/setter/addpage"; }
the page want get
<c:url var="processurl" value="/main/user/setter/addpage/?id=${userid}" /> <form:form modelattribute="module" method="post" action="${processurl}" name="module" enctype="multipart/form-data"> </form:form>
the page i'm requesting from:
<c:foreach items="${users}" var="setter" > <c:url var="addurl" value="/main/user/setter/addpage?userid=${setter.userid}" /> <td> <a href="${addurl}" class="button round colour right add text-upper">add</a> </td>
when click on add link above goes 404 page. url going through. great.
can try :
@requestmapping(value="/main/user/setter/addpage"
instead of
@requestmapping(value="/main/user/setter/addpage/"
Comments
Post a Comment