Hi,
I am trying to convert my app written in spring mvc 2.5 to use the annotated style of controller.
Apparently, I am unable to get things going. Hope somebody could help me here.
I have a mapping as below:
<li><a href="eqr/eqrItemList.htm"><span>Equipment Qual Report</span></a></li>
I created my controller like below:
@Controller
@RequestMapping("/eqr")
public class EQRMainController {
private SimpleEQRTransManager eqrManager;
protected final Log logger = LogFactory.getLog(getClass());
@RequestMapping(value = "/eqrItemList.htm")
public String setupForm(
@RequestParam(value = "plant", required = false) String plant,
return "eqrmain";
}
}
I wanted to use the relative path so I set my request mapping at the class type level. But apparently, I am getting a 404 not found and a Handler mapping not found error at the tomcat console.
It says 'No mapping found for HTTP request with URI [/myapp/eqr/eqrItemList.htm]...'
I look at the firebug console and it is requesting below path:
http://localhost:8080/myapp/eqr/eqrItemList.htm
Dont really know why it cant find the mapping. Please help.