> In our struts app, I have a submit image quite a way down a 
> fairly long page.  When the user clicks that image and struts
forwards
> them back to the same page, they are automatically sent to the top
of
> the page.  Is there any way for the app to 'remember' where the user
> was on the page and return them to that position?


Just change the action to which your form submits from:

     <html:form action="/someAction.do">
to
     <html:form action="/someAction.do#whatever">


In your JSP you will need something like:

    <a name="whatever"></a>

at the place you want the browser to scroll to. How you get it there,
is left as an exercise for the reader. :)



--
Steve Stair


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to