J
Jimmy
Hi all,
Here is the portion of the struts.xml :
<action name="someAction"
class="com.someone.SomeAction">
<result name="success" type="redirect">/
someAction.jspa#someAnchorInHtml</result>
</action>
Here is a simple HTML :
<html><head></head><body>
assuming whole bunch of text before ...
<a id="someAnchorInHtml" name="someAnchorInHtml"/>
assuming whole bunch of text after ...
</body></html>
This works fine in Firefox as it jumps right to the anchor of the page
when the above HTML gets loaded. However, not in IE (i.e. IE 7).
Looking at the URL :
Firefox - http://localhost:8080/someapp/someAction.jspa#someAnchorInHtml
IE - http://localhost:8080/someapp/someAction.jspa
As you can see from the above IE URL example, the part
"#someAnchorInHtml" got lost so it never gets jump to the anchor, but
"#someAnchorInHtml" still exist as part of the URL for Firefox.
Does anyone have any idea?
Thanks,
Jimmy
Here is the portion of the struts.xml :
<action name="someAction"
class="com.someone.SomeAction">
<result name="success" type="redirect">/
someAction.jspa#someAnchorInHtml</result>
</action>
Here is a simple HTML :
<html><head></head><body>
assuming whole bunch of text before ...
<a id="someAnchorInHtml" name="someAnchorInHtml"/>
assuming whole bunch of text after ...
</body></html>
This works fine in Firefox as it jumps right to the anchor of the page
when the above HTML gets loaded. However, not in IE (i.e. IE 7).
Looking at the URL :
Firefox - http://localhost:8080/someapp/someAction.jspa#someAnchorInHtml
IE - http://localhost:8080/someapp/someAction.jspa
As you can see from the above IE URL example, the part
"#someAnchorInHtml" got lost so it never gets jump to the anchor, but
"#someAnchorInHtml" still exist as part of the URL for Firefox.
Does anyone have any idea?
Thanks,
Jimmy