• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Absolute URI

 
deepa raj
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Joy Mukherjee
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic