struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Mannering" <>
Subject <html:base> causing internal html and anchoring to fail.
Date Thu, 02 Sep 2004 11:33:13 GMT

Has anyone anecountered this problem before.

When using <html:base />, the browser mistakes internal links and anchors within a page
to reference anchor points within another page.

So what?  Well, this forces a reload of the page rather than the browser simply snapping to
the point in the page.

In my application, this would require additional DB processes to be executed for the data
that is already held in the HTML page on screen.

It comes about because of the actual page being shown and the browser URL are different. 
i.e. the URL holds a reference to a struts action, while the browser recognises the internal
HTML links in association with the HTML page name - myPage.jsp (due to the use of the <html:base
/> element).

Is there a way round this, other than removing the <html:base /> from the doc as this
is not an option?

Robin Mannering
Java Web Developer - Legal & Finance

Tel: 	01491 418957
Fax:	01491 413031
Landmark Information Group -

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this e-mail and you are not a named
addressee, please inform Landmark Information Group on 01491 413030
and then delete the e-mail from your system. If you are not a named
addressee you must not use, disclose, distribute, copy, print or rely 
on this e-mail. This email and any attachments have been scanned for
viruses and to the best of our knowledge are clean. To ensure 
regulatory compliance and for the protection of our clients and 
business, we may monitor and read e-mails sent to and from our 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message