Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Flavours of Relative URL Doubt

 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P-136 of HSFJ :

Relative URL come in 2 flavours : with(Root-Relative) or without(Non-Root Relative) starting with a forward slash.

BUT on P-204, there is a contradiction to this statement :

request.getRequestDispatcher("result.jsp"); --> This is a relative path (because there is no forward slash) ?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
request.getRequestDispatcher("result.jsp");

This is not a contradiction. It matches the second statement : without(Non-Root Relative) starting with a forward slash.
 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a relative path (because there is no forward slash)

This means that if a url does start with a forward slash, it's not a relative URL.

Hence contradiction....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic