2014-04-16 183 views
0

嘿我需要將我的表單連接到控制器我如何在Spring MVC中做?MVC3查看控制器

<form method="get" action="customer"> 
       <input type="text" value="default" /> <input type="submit" value="search"/> 
       </form> 

這是我的控制器

@Controller 
@RequestMapping(value = "/customer") 
public class CustomerController { 
    private static final Logger logger = LoggerFactory.getLogger(OrderManagementController.class); 

@Autowired 
private OMPCamundaBridge ompCamundaBridge; 

@RequestMapping(value="/customerlist",method= RequestMethod.GET) 
public ModelAndView dummylist() 
{ 
    return new ModelAndView() 

任何幫助將高度讚賞

回答