Java servlet not dispatching to another servlet

前端 未结 4 1231
无人共我
无人共我 2021-01-24 08:58

I have 2 servlets, \"HomeController\" and \"SearchController\". On the home.jsp I have a form that has a search box and when submitted actions to \"Search\"

 <         


        
4条回答
  •  故里飘歌
    2021-01-24 09:12

    Well, for one your servlet mapping config doesn't quite look right: you have this:

    
        SearchController
        /Search
    
    
    
        HomeController
    

    Notice the 2 servlet-mapping lines?

    I expect you just have an error in your web.xml file: your code looks fine.

提交回复
热议问题