• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring MVC - view problem

 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic