Hello to everyone,

I have been in a boring situation in my project.. I can't forward to a jsp page from my servlet.. I found many codes; but none of them worked.. The URL adress never changes.. (Always stays at the same page)

Here's some of codes I tried:

RequestDispatcher rd = request.getRequestDispatcher("/admin.jsp");
rd.forward(request, response);

or

getServletConfig().getServletContext().getRequestDispatcher("/admin.jsp").forward(request, response);

or

response.setHeader("Location","/admin.jsp");

I need ur helps.. Thanx in advance..
Talha

Have look at this post you will find your answer

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.