This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes clarify html:base Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "clarify html:base" Watch "clarify html:base" New topic

clarify html:base


Joined: May 17, 2004
Posts: 16
Hi all,
why we use this <html:base/> tag?
what is the purpose?
thanks & regards,
Lionel Port

Joined: Sep 14, 2002
Posts: 19
The <html:base/> tag puts an absolute reference to the jsp page generating it.

This is then used when using relative urls in the jsp so that the location of the resource you might want to include is calculated based on the location of the jsp instead of the contents of the request uri.
It is sorta covered in the JavaRanch Style Guide.
subject: clarify html:base
Similar Threads
Redirect behind proxy
Frames & Struts - How to?
Use of html:base tag in Struts
Is stylesheet not visible to Struts