PDA

View Full Version : MVC tutorial


asystu
Nov 25th, 2004, 08:18 AM
Hi

Someone suggested Spring as a good starting point for Java and I'm just working through the MVC tutorial.

Have got to part 2 but cannot understand why I don't get the Hello page when entering http://localhost:8080/springapp. I get a 'Directory Listing For' page for some reason. Have checked back through the tutorial and appear to have the correct source and settings. Can anyone suggest where I might be looking in order to solve the problem. I assume that the 'return new ModelAndView' is not firing but what might cause this?

Many Thanks

kantorn
Nov 25th, 2004, 09:55 AM
Hi!

Spring as a starting point for Java? No, I would not recommend that, you have to have a great deal of knowledge before you dive into it. Not to mention J2EE and all the connections to that....

Anyway:

Have you checked your web.xml under <welcome-file-list> it should contain a reacheble starting .jsp which should be placed under the /WEB-INF directory.

dan.baumann
Aug 23rd, 2005, 12:04 PM
Actually, I think the starting JSP must be placed in webapps/mywebapp/ to be reachable. Just came here with the same problem, you know..

For some reason, it's always those stupid but dead simple errors that take the longest to resolve..