Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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.
 
Author and ninkuma
Marshal
Posts: 66607
161
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!