This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes html:base Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:base " Watch "html:base " New topic


wrushasen dakhane
Ranch Hand

Joined: Sep 25, 2006
Posts: 47
Please explain with example how does the html:base tag works?

SCJP 1.4, SCWCD 1.4
Paras Jain
Ranch Hand

Joined: Feb 26, 2005
Posts: 138
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


Paras Jain
SCJP 5.0
I agree. Here's the link:
subject: html:base
It's not a secret anymore!