• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

access JSP in a subfolder in webcontent  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so i have servlet that send a message to a jsp using request dispatcher. But a 404 error comes. The jsp file is located inside a folder that folder is inside the webcontent. When i place that jsp file directly in the webcontent folder and cange the path in request dispatcher the 404 error goes away.But i want to place it inside of a folder can you tell me what the path will be.
 
Marshal
Posts: 67164
169
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paths in Java web applications should be server-relative, that is, start with the context path. See the JspFaq for an article that describes how to do this.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!