File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Web Component Certification (SCWCD/OCPJWCD)
RequestDispatcher and form action Problem
Mohit G Gupta
Joined: May 18, 2010
Jun 29, 2011 08:19:31
RequestDispatcher rd=request.getRequestDispatcher("/login.html"); <form action="/abc" method=post >
i am confused when we have to put a forward slash in the
why do we have to put the slash in the requestdispatcher when forwarding to a html or jsp page ?
OCPJP 6.0 93%
OCPJWCD 5.0 98%
Joined: Mar 09, 2010
Jun 29, 2011 11:46:58
You may or may not use /. Try removing it and check. The code should behave the same whether you have a / or not.
I agree. Here's the link:
subject: RequestDispatcher and form action Problem
Compiling Servlets how to..
servlet mapping problem
doubt on RequestDispatcher
Shopping cart help
Servlet not called - Error in web.xml
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014