reset password
Author Message
DavidGilbert
Posts: 40
Posted 19:52 Apr 17, 2012 |

Update: I figured it out, had to add an entry in tiles.xml, working perfectly now.


I have a presentation jsp called 'courses.jsp'

When I run my code on the server and go to:  localhost:8080/csns2/hw1

I get this message:
Could not resolve view with name 'courses' in servlet with name 'csns2'

The code in my controller is simple:

@RequestMapping(value = {"/hw1/","/hw1"}, method = RequestMethod.GET)
public String index(ModelMap models)
{
    return "courses";

If I change "courses" to "index" it will return the index.jsp content. Where do I set it so when I request "courses" it will return courses.jsp? courses.jsp is saved in the same directory as the other pages.

 

Last edited by DavidGilbert at 20:03 Apr 17, 2012.