[Logo]
Forums Register Login
Absolute URI
Can you please list where and all we can use absolute URI's.

Like .

1.response.sendRedirect(url)
-- can start with / or not .(but it should be a relative URL)

2.ServletContext.getRequestDispatcher("url").forward(req,resp);
-- Should start with / (Should be relative to webapp root)

3.HttpServletRequest.getRequestDispatcher("url").forward(req,resp);
-- can start with / or not .(but it should be relative to the request if
url doesnt start with /)

4.<c:import url="url" /> -- absolute url

5.<%@include file="page" %> --
can start with / or not (must be a Relative url for webapp if start with / or relative to the request)

6.<jsp:include page="page" %> --
can start with / or not (must be a Relative url for webapp if start with / or relative to the request)

other things are there please add it into the list.
[ August 21, 2008: Message edited by: deepa raj ]
All url String parameters that is associated with any ServletContext
like getRequestDispatcher() will require absolute url and not relative.
Thats the catch

Thanks and Regards
Joy
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Dec 12, 2017 07:19:36.