Announcement Announcement Module
Collapse
No announcement yet.
Manual Controllers that don't return a view Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Manual Controllers that don't return a view

    Is it possible for a Controller that doesn't return a view to live in a Roo webapp?

    This controller:
    Code:
    @Controller
    public class FooController{
    
    	@RequestMapping("/foo")
    	public void doStuff(HttpSession session) {
    		//do stuff
    
    	}
    
    }
    bombs with
    Code:
    javax.servlet.ServletException: Could not resolve view with name
    ...

    It seems I need the opposite of <mvc:view-controller />... something that lets me specify a controller but not a view.

    Any thoughts?
Working...
X