troubleshooting Question

Redirectiong from servlets.

Avatar of Triggered
Triggered asked on
JSP
66 Comments5 Solutions1469 ViewsLast Modified:
Hi,

Im having problems trrying to redirect from a servlet to a jsp page from within a "doPost()" method,
im new to servlets , my code for the redirect is:

 RequestDispatcher Dispatche=request.getRequestDispatcher("http://localhost:8080/myJSPpage.jsp");
        Dispatche.forward(request,response);


im getting errors though,im wondering where am i going wrong here.

Thanks in advance,
Triggered
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 5 Answers and 66 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 5 Answers and 66 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros