Hi Ashwani, html:base is used to let the the browser know the location of the document currently being seen by the user. This is important in the case of web pages where there is an internal mapping between what a browser submits an action to and what the user ends up seeing. These two may be different and ususally are for web pages created with Struts.
For e.g., your app1/mystruts/logon.do may actually be referring to a page in lets say app1/mystruts/dir1/welcome.jsp. Now, if you had images in this page and they were mapped with relative paths in a directory as ../images/image1.gif, this would imply to the browser that image1.gif needs to be retrieved from the directory app1/images (because the browser sees the URL as app1/mystruts/logon.do and not app1/mystruts/dir1/welcome.jsp), when you actually mean that it should be retrieved from app1/mystruts/images. If you specify html:base, it makes an entry in the head section which is used by all the relative urls in your page. So for example, if you did put an html:base in the welcome.jsp as above, it would tell the browser that the base url for all relative urls in this page is app1/mystruts/dir1 and not app1/mystruts. HTH Vikram ----- Original Message ----- From: "Kalra, Ashwani" <[EMAIL PROTECTED]> To: "Struts (E-mail)" <[EMAIL PROTECTED]> Sent: Tuesday, September 23, 2003 4:11 PM Subject: html base element > Hi, > > I am not able to figure out what problem I face when I am not using this > tag. for eg. I am able to use the relative paths to the images from the > page whose url is http://localhost:8080/mystruts/logon.do > <http://localhost:8080/mystruts/logon.do> on the browser. Can someone give > an example on this ? > > TIA > Ashwani Kalra > http://www.geocities.com/ashwani_kalra > <http://www.geocities.com/ashwani_kalra> > > > > ____________________________________________________ > This message contains information that may be privileged or confidential and > is the property of the Cap Gemini Ernst & Young Group. It is intended only > for the person to whom it is addressed. If you are not the intended > recipient, you are not authorised to read, print, retain, copy, disseminate, > distribute, or use this message or any part thereof. If you receive this > message in error, please notify the sender immediately and delete all copies > of this message. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

