Aside from the JS solution, you can also return an action forward with
a modified path:
// in 1.2.x
ActionForward result = new ActionForward(mapping.findForward("masterJsp"));
result.setPath(result.getPath() + "#XX");
return result;
- Hubert
On Fri, 24 Sep 2004 14:28:01 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> From: "Tom McCobb" <[EMAIL PROTECTED]>
> > I would like to be able to re-position on the record last worked on. I
> was
> > thinking that appending a bookmark (keyed on the index number of the
> detail
> > item in the list) to the forward would work nicely, but I do not know how
> to
> > pass the index to the forward, like path="/master.jsp#XX".
>
> I do it with a bit of JavaScript:
>
> <c:if test="${anchor ne null}">
> <script>
> document.location = "#<c:out value="${anchor}"/>";
> </script>
> </c:if>
>
> If I need the page to jump, then 'anchor' is set as a request attribute in
> the Action code.
>
> --
> Wendy Smoak
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]