• Post Reply Bookmark Topic Watch Topic
  • New Topic

html:base  RSS feed

 
wrushasen dakhane
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please explain with example how does the html:base tag works?
 
Paras Jain
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In short once you declare <html:base> in your <head> section of your jsp you don't have to specify the full path for your resources like images etc

so instead of something like a/b/c/images/thumb.jpg you can say
/images/thumb.jpg.


Rgds,
Paras
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!