Is it possible to change the url in case of request dispatch .
This is my code
public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
{
List<HomePageServicesDescription> data= HomePageServicesDescriptionDB.showHomePageServicesDescription();
req.setAttribute("description", data);
req.getRequestDispatcher("index.jsp").forward(req,res);
}
So when see it in web browser so it give the url=http://localhost:8888/url-mapping
of servlet.
but i want that url=http://localhost:8888/index.jsp
. how it can be possible.
<%=description.getDescription()%>