java - getting always 500 failed to load resources Spring -
i have jsp use spring form tags , work fines until before. had changed things in jsp , controller , started continuously getting 500 server error , no related log show error , on console. don't understand caused error , upon wasted time , feel required here.
my pojo
public class transferinvoiceform { private list<transferinvoice> trinvoicelist; //getters , setters
my controller method @controller @requestmapping("/asset/invoice")
//some other methods here @requestmapping(value ="transferinvoicehdrform", method = requestmethod.get) protected modelandview showform(final httpservletrequest request, final httpservletresponse response)throws exception { transferinvoiceform transferinvoice = new transferinvoiceform(); list<transferinvoice> transferinvoice= transferinvoicehdrservice.getassetcategoriesandtransfer(); transferinvoice.settrinvoicelist(transferinvoice); return new modelandview("asset/transferinvoicehdrform", "transferinvoice", transferinvoice); }
and in jsp
<form:form method="post" action="/asset/invoice/searchctr" modelattribute="transferinvoice"> <fieldset> <form:select path="trinvoicelist" class="col-xs-12 col-lg-5 form-group"> <form:option value="0" selected="true">all</form:option> <c:foreach var="transferinvoicetype" items="${transferinvoice.trinvoicelist}"> <form:option value="${transferinvoicetype.assetname}"></form:option> </c:foreach> </form:select> <form:select path="trinvoicelist" class="col-xs-12 col-lg-5 form-group"> <form:option value="0" selected="true">all</form:option> <c:foreach var="transferinvoicetype" items="${transferinvoice.trinvoicelist}"> <form:option value="${transferinvoicetype.assettolocation}"></form:option> </c:foreach> </form:select> <button class="btn btn-primary" type="submit" class="col-xs-12 col-lg-6 form-group"> <fmt:message key="button.search" /> </button> </fieldset> </form:form>
and in other jsp
<form:form method="post" action="/asset/invoice/transferinvoiceconfirm" modelattribute="transferinvoice"> <c:foreach items="${transferinvoice.trinvoicelist}" var="invoice" varstatus="status"> </c:foreach> <table id="assets-tbl" border="1" class="table table-bordered table-hover table-striped"> <thead> <tr> <th><input id="selectall" type="checkbox" value=""></th> <th><fmt:message key="asset.scancode.serialno" /></th> <th><fmt:message key="asset.modelno"/></th> <th><fmt:message key="asset.name" /></th> <th><fmt:message key="asset.invoice.tolocation" /></th> <th><fmt:message key="asset.invoice.invoicedate" /></th> </tr> </thead> <tbody id="assets-tbl-body" > <tr> <td><form:checkbox path="trinvoicelist[${status.index}].check"/></td> <td><form:hidden path="trinvoicelist[${status.index}].scanserialcode"/>${invoice.scanserialcode}</td> <td><form:hidden path="trinvoicelist[${status.index}].modelnum"/>${invoice.modelnum}</td> <td><form:hidden path="trinvoicelist[${status.index}].assetname"/>${invoice.assetname}</td> <td><form:hidden path="trinvoicelist[${status.index}].assettolocation"/>${invoice.assettolocation}</td> <td><form:hidden path="trinvoicelist[${status.index}].actualtransferdate"/>${invoice.actualtransferdate}</td> </tr> </tbody> </table> <div class="panel-footer"> <div class="row"> <div class="col-lg-7 col-sm-offset-5"> <input class="btn btn-primary" type="submit" value="confirm"> </div> </div> </div> </form:form>
and controller method called
<a href='<c:url value="/asset/invoice/transferinvoicehdrform" />' style="float: right">
looking help. thanks
Comments
Post a Comment