It's not a secret anymore!
The moose likes Struts and the fly likes html:base and named anchors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:base and named anchors" Watch "html:base and named anchors" New topic

html:base and named anchors

Andles Jurgen
Ranch Hand

Joined: Mar 18, 2002
Posts: 67
I am using a page that dynamically creates links to named anchors in the same page. When I added the struts html:base tag to the page it stopped them from working. Probarbly because the html:base tag is causing the browser to fully qulaify my supposedly page relative named anchors? (such as #top and so on.)
What is the best way to get round this??
Andles Jurgen
Ranch Hand

Joined: Mar 18, 2002
Posts: 67
Could somebody please answer this post if at all possible - still having no luck figuring it out.
Basically I am have built a list of links dynamically that looks like this when viewing the html source:
<a href="#1">Question 1 blah blah </a>
<a href="#2">Question 2 blah blah </a>
and so on ...
(it's an FAQ page with answers linking to questions with named anchors.)
The problem is that, when using html:base, the browser tries to resolve the links from the base path, so the browser no longer see them as simple named anchors.
Any help at all would be much appreciated.
Have you checked out Aspose?
subject: html:base and named anchors
jQuery in Action, 3rd edition