Hi,

you can try

<stripes:form action="/MyBean.action#MyAnchor">

I'm not 100 % sure if this will work, though.

Pascal

Egon Nijns schrieb:
> Dear Stripes users,
> 
> I recently received an improvement request for a search screen that I've 
> built with stripes. People want the webapp to scroll down to the 'results' 
> section if there are any results. There are several ways to implement this, 
> but I thought it would be a good idea to use an anchor (<a 
> name="results"></a>) on my page.
> 
> I wanted to set the anchor on the ForwardResolution in my actionbean, but 
> apparently this is only possible with a RedirectResolution.
> 
> *         I tried to do a 'redirect after post' using the flashscope, but 
> this is giving some other issues in my view. This is also not really 
> necessary since there are no side-effects happening in my POST (it's a simple 
> search after all)
> 
> *         I also tried subclassing ForwardResolution to make setAnchor 
> public, but this results in a HTTP Status 404 - /webapp/search.jsp#results
> 
> Is it really a bad idea to put an anchor on a forwardresolution, and why? 
> Should I use javascript to scroll to the 'results' section instead??
> 
> Kind regards and thanks for your input,
> 
> Egon Nijns
> IT


------------------------------------------------------------------------------

_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to