java - submitting form in ftl to spring MVC controller -
i have simple form want submit spring mvc controller. form goes this:
<form id="assaydetailsform" method="get" action="[@spring.url '/reports/assay/runassaydetailsreport.htm'/]">
below spring controller java code:
@requestmapping(value="/assay/runassaydetailsreport", method = requestmethod.get) public modelandview runassaydetailsreport(@requestparam("magentaassayids")string magentaassayids, @requestparam("reportformat")string reportformat){
the problem request never reaches desired method i.e. "runassaydetailsreport" , runtime exception thrown.
i tried submitting above form using ajax call 404 status code returned.
appreciate help.
Comments
Post a Comment