• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Stripes state management problem

 
Greenhorn
Posts: 14
Firefox Browser Postgres Database Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Currently I'm facing a problem of state management. After submitting my form(to add record) , I forward my request to another jsp from the action bean. So on refresh same event (add record) is called and it re-submits my form.
Then I've gone though http://www.stripesframework.org/display/stripes/State+Management

This link suggests me to use FlashScope. But my problem is that in my page I'm using session attributes and request parameters. So if I use FlashScope it works fine but only first time. Once the page loads and as I refresh, all my attributes and parameters goes away.

So how to take control of all my parameters and avoid the problem of re-submit on refresh?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!