@RequestParam annotations are used to bind request parameters to method parameters in the controller.
Use the following:
@RequestMapping
public void AdvancedSearch (
@RequestParam ("Querystr") String Querystr,
@RequestParam ("Showflag") String Showflag,
@RequestParam ("Totalnumber") String Totalnumber,
@RequestParam ("Uptype") String Uptype,
@RequestParam ("Jmesareq") String Jmesareq,
@RequestParam ("Isexportoper") String Isexportoper,
HttpServletResponse response, Final httpservletrequest request,
Modelmap model) {
Get query structure and query type from page
list<long> cd_ids = new arraylist<long> ();
if (Stringutils.equals ("Invoke", Jmesareq)) {
Cd_ids = (list<long>) request.getsession (). getattribute (Constants.result_ids);
}
....
}
Using this annotation parameter is required by default, but you can set the required property of @requestparam to False to make this parameter optional.
For example @requestparam (value= "name", required= "false")
Bind request parameters to method parameters using @requestparam