| Author |
Spring MVC - view problem
|
Christophe Verré
Marshal
Joined: Nov 24, 2005
Posts: 14361
|
|
I'm new to Spring MVC, and there's something I don't get: I'm using a simple InternalResourceViewResolver. prefix is "/WEB-INF/jsp/" and suffix is ".jsp" My Controller returns a ModelAndView whose View name is "home", so the Dispatcher should look for the file "/WEB-INF/jsp/home.jsp" If the file does not exist, an error occurs. Ok. But if the file exists, nothing is printed out. The file "home.jsp" only contains a greeting message, but I have a blank page. It worked with suffix set to ".html" Would this be a container related problem ? I'm using Tomcat 5.5. Any clues ? Thanks. [ April 25, 2006: Message edited by: Satou kurinosuke ]
|
[SCBCD Wall of Fame] [My Blog]
All roads lead to JavaRanch
Help Japan. Make a donation.
|
 |
Christophe Verré
Marshal
Joined: Nov 24, 2005
Posts: 14361
|
|
Ok, I've found the problem. I had jsp-api.jar and servlet-api.jar in my lib directory, probably conflicting with Tomcat's own jars. Removing those intruders solved the problem.
|
 |
 |
|
|
subject: Spring MVC - view problem
|
|
|