Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My jsp page code:
On href of anchor tag im calling - viewAllProducts.htm

my Controller code:

@RequestMapping(value = "viewAllProducts.htm",method = RequestMethod.GET ) public ModelAndView getProductById1(ModelAndView mav,HttpServletRequest request){
System.out.println("------------------------------------------------"); mav.setViewName("ViewAllProductsPage");
return mav;
}

When this action is called sout is being printed in apache tomcat output window, but page is being set in ModelAndView object.. Can anybody provide a solution?

Browser shows following error :


HTTP Status 404 - /AntixxWeb/WEB-INF/jsp/viewAllProducts.jsp
type Status report
message /AntixxWeb/WEB-INF/jsp/viewAllProducts.jsp
description The requested resource is not available.
Apache Tomcat/8.0.3
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900