struts result redirect to action lost html anchor in url

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top