Tuesday, 15 June 2010

java - submitting form in ftl to spring MVC controller -


I have a simple form that I want to submit to a spring MVC controller. The form happens in this way:

  & lt; Form id = "assayDetailsForm" method = "get" action = "[@ spring.url '/reports/assay/runAssayDetailsReport.htm'/]" & gt;  

The spring controller is Java code below:

  @RequestMapping (value = "/ assay / runAssayDetailsReport", method = RequestMethod.GET) Public ModelAndView runAssayDetailsReport ( @RejectParam) (String MagentaAceeds) String MagentaAceeds, @resoppopem ("Report format") String report format) The problem is that the request is the desired method i.e. "run assayed report" and never runs Runtime exception is always thrown 

I used the AJAX call to the form above Tried to c but always returned 404 status code.

Appreciate the help


No comments:

Post a Comment