• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can't setup basic spring application

 
Abhilash
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am setting an application in Spring framework. I have a file called include.jsp in homedir /WEB-INF/jsp/include.jsp. And in my index.jsp page i wrote the line
<%@ include file="/WEB-INF/jsp/include.jsp" %>
and index.jsp is in the home directory(springapp).
But when i gave the url "http//localhost:8080/springapp" in the browser i got jsp error
"/WEB-INF/jsp/include.jsp" not found
how can i include that page... Anybody plz help
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Abhilash AT",

Welcome to JavaRanch. We don't have many rules here, but we do have a naming policy which we strictly enforce. It appears possible that your chosen display name may be in violation of that policy. Please re-read the policy to see if this is the case and alter your display name accordingly. Thanks a lot and we look forward to seeing you around the Ranch.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to our brand new Web Frameworks forum..
 
Chris Rosenquest
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Abhilash AT:
I am setting an application in Spring framework. I have a file called include.jsp in homedir /WEB-INF/jsp/include.jsp. And in my index.jsp page i wrote the line
<%@ include file="/WEB-INF/jsp/include.jsp" %>
and index.jsp is in the home directory(springapp).
But when i gave the url "http//localhost:8080/springapp" in the browser i got jsp error
"/WEB-INF/jsp/include.jsp" not found
how can i include that page... Anybody plz help


Try stepping through the tutorial provided from www.springframework.org.
http://www.springframework.org/docs/MVC-step-by-step/Spring-MVC-step-by-step.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic