gudii9
asked on
servlet Request Dispatcher path
Hi,
I was reading as below.
I have not understood relative path to servlet location vs relative path to current context root. What is the difference between them and when we use which one and what are advantages and disavantages of each one. What is the absolute path and when we use it.
Please advise.
Any links resources ideas highly appreciated. Thanks in advance
I was reading as below.
Request Dispatcher
After supplying a String, a path to the JSP file If the path begins with a slash, it is relative to the current context root
Otherwise, it is relative to the servlet location.
Then we do
view.forward(request, response);
After added the result information to the HttpRequest object forward the whole thing to the JSP
I have not understood relative path to servlet location vs relative path to current context root. What is the difference between them and when we use which one and what are advantages and disavantages of each one. What is the absolute path and when we use it.
Please advise.
Any links resources ideas highly appreciated. Thanks in advance
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
So relative means relative to the folder of the source page(apayment.jsp )Yes.
ASKER
relative path seems not suitable for above requirement.
So relative means relative to the folder of the source page(apayment.jsp )
Please confirm