You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Br...@transplace.com on 2001/08/29 23:02:58 UTC
How to handle an ActionForward to a page with an anchor?
All,
I have a page with a control which allows the user to add items to a vector
on a bean. Basically it is a company form with an Add Subsidiary button.
Each time the user presses "Add", the vector on the company formbean
receives the new element. However, when the page reloads, I want the
browser to scroll to the subsidiaries region of the page. In order to do
this, I would like to place an anchor tag at that place on the page, then
have Struts place the #subsidiary anchor in the URL. If there is a better
way to do this, please let me know...
Is there a Struts 1.0 feature that will help me do this? If there is not a
Struts 1.0 feature that will help, is there a planned feature in the Struts
1.1 release that will help?
Thanks,
Brian
Re: How to handle an ActionForward to a page with an anchor?
Posted by ma...@tumbleweed.com.
Take a look at the 'anchor' attribute on the <html:link> tag. If you use
that for your Add link, I believe it will do what you want.
--
Martin Cooper
----- Original Message -----
From: <Br...@transplace.com>
To: <st...@jakarta.apache.org>
Sent: Wednesday, August 29, 2001 2:02 PM
Subject: How to handle an ActionForward to a page with an anchor?
> All,
>
> I have a page with a control which allows the user to add items to a
vector
> on a bean. Basically it is a company form with an Add Subsidiary button.
> Each time the user presses "Add", the vector on the company formbean
> receives the new element. However, when the page reloads, I want the
> browser to scroll to the subsidiaries region of the page. In order to do
> this, I would like to place an anchor tag at that place on the page, then
> have Struts place the #subsidiary anchor in the URL. If there is a
better
> way to do this, please let me know...
>
> Is there a Struts 1.0 feature that will help me do this? If there is not
a
> Struts 1.0 feature that will help, is there a planned feature in the
Struts
> 1.1 release that will help?
>
> Thanks,
> Brian
>