Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Q4 page38 authore:charles Lyons  RSS feed

 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An example of a context-relative URL is

A) index.jsp
B) ../documents/mydoc.pdf
c) context/images/logo.gif
d) /catalogue/prices.xml
e)./downloads/update.exe

Correct Answer is D
As per i think Context-relative always start from foward slash(/) and here is only D option follow this Rule.
It is only this region option D is correct or it's haveing othere region.
If it's Having other region then any one please explaine me?
Thanks in Advances.....
 
Saloon Keeper
Posts: 4041
47
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For a context-relative URL it should starts with a forward slash (/). Remember context is the root of the web application.
[ December 04, 2008: Message edited by: Vijitha Kumara ]
 
vipin jain
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Vijitha..

One more question
if the question is what is example of Relativre URLs?
Then what will correct answere?

your every help would be Appreciated......
 
Author
Ranch Hand
Posts: 836
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

if the question is what is example of Relativre URLs?
Then what will correct answere?

See the explanation of the answer for Q.4 on p.40... it explains that every other URL given is a relative URL.
 
grapes are vegan food pellets. Eat this tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!