Egon, this maybe more of an issue coming from the browser side, and not 
necessarily a limitation of stripes. I believe browsers need the #anchor in the 
location in order for them to work, so forwards wont have that. (not a 100% 
sure on this, but that's been my experience)
If possible I would look at some simple javascript to possibly select the right 
anchor after page load.

On May 7, 2010, at 4:46 AM, Egon Nijns wrote:

> 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
> 
> e...@uzleuven.be
> tel. +32 16 34 78 09
> UZ Leuven | campus Gasthuisberg | Herestraat 49 | B - 3000 Leuven | 
> www.uzleuven.be
>  
> ------------------------------------------------------------------------------
> 
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

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

Reply via email to