• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Absolute URI

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic