• 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

Where should I put my jsp in maven project

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am building a little project using spring + hibernate + maven. It is small, very small. and it is driving me crazy ... After couple hours of debugging Http 404, now my Tomcat server can not start lol :'(


This is my webapp/WEB-INF/jsp/order.jsp




This is my web.xml


This is my spring-servlet.xml



My pom.xml



last is my controller.java


 
author & internet detective
Posts: 41905
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The literal answer to your question is: projectName/src/main/webapp/WEB-INF/order.jsp

I think this is more of a Spring MVC question though so adding to the Spring forum.
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
SInce you are using InternalViewResolver, it will use it. I think you have to set the prefix and suffix of the InternalViewResolver to make it find the correct jsp. Certainly the Spring docs say that you should set the prefix and suffix. I haven;t tried it without prefix/suffix myself. I don;t kow what they default to
 
Ranch Hand
Posts: 491
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A side note: What is the request URL you used/typed that caused 404?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic