Hi, I want to overwrite (or push-in) the delete method of the generated controller. In this pushed-in method, I need to access the HttpServletRequest.
If I add the HttpServletRequest parameter to my method signature, Roo dosen't remove the delete method from the .aj file, leaving me with two delete methods.
In my Controller.java
In Controller_Roo.ajCode:@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) public String delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel, HttpServletRequest request) {
This used to work in 1.1.2, but it dosen't in 1.1.4.Code:@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) public String ApplicationController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) {
So how can I access the HttpServletRequest in my pushed-in delete method?


Reply With Quote