Announcement Announcement Module
Collapse
No announcement yet.
in booking-faces example @Controller doesn't work Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • in booking-faces example @Controller doesn't work

    Hello, in the booking-faces example I'm trying to call a @Controller.

    if I call http://localhost:8080/swf-booking-faces/home the application keeps looking for home.xhtml instead of calling my @Controller. I create home.xhtml and my @RequestMapping(method = RequestMethod.GET) is definitely not being called.


    Code:
    package it.ug.rc.controller;
    
    import org.springframework.stereotype.Controller;
    import org.springframework.ui.ModelMap;
    import org.springframework.web.bind.annotation.RequestMapping;
    import org.springframework.web.bind.annotation.RequestMethod;
    
    @Controller
    @RequestMapping("/home")
    public class HomeController {
    	
        @RequestMapping(method = RequestMethod.GET)
        public String homeAction(ModelMap model) {
    		
    		model.put("message", "This is your project's home");
    		return "home";
        }
    }
    I think it is a problem due to JSF2

  • #2
    does anyone have any idea? help me please

    Comment

    Working...
    X