java - 404 error while redirecting the request from servlet to jsp -



in-spite of reading many post regarding 404 error not figure out mistake while re-directing request. know 404 due wrong path provided us, still unable fix issue.

i want send request firstjsp.jsp located in /reportfetcher/webcontent servlet submitmarkscontroller in /reportfetcher/javaresource/src/ , in src located in package com.gaurav.controller

below list of property of request reference has value corresponding name:

  1. context path = "/reportfetcher"
  2. request dispatcher path = "/submitmarkscontroller"
  3. request uri = "/reportfetcher/submitmarkscontroller"
  4. servlet path = "/submitmarkscontroller"

my attempt following:

response.sendredirect("/reportfetcher/webcontent/firstjsp.jsp"); return ; 

try response.sendredirect("firstjsp.jsp"); webcontent root of web application. paths relative it.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -