-
Spring View Prefix
Using Spring MVC controllers with annotations:
@RequestMapping(value="/{lang}/guard/dfx.htm", method=RequestMethod.GET)
public ModelAndView index(@PathVariable String lang, Model model )
{
model.addAttribute("language", lang);
ModelAndView mm = new ModelAndView();
mm.setViewName("/guard/dfx");
return mm;
}
GlassFish 3.1 said:
SEVERE: PWC6117: File "D%3A%5Cnetbeans_projects%5Csomeproject%5Cbuild%5C web%5CWEB-INF%5Cjsp%5Ceng%5Cguard%5Cdfx.jspx" not found
So it was trying to get /eng/guard/dfx but i want to use /guard/dfx view.
How can i set direct view name?