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:
- context path = "/reportfetcher"
- request dispatcher path = "/submitmarkscontroller"
- request uri = "/reportfetcher/submitmarkscontroller"
- 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
Post a Comment