• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

put the criteria fields on valuestack when move to another page and get them back on return

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My application consists from two forms. The first form is used to list the data and it has two parts: above are some criteria fields and a search button and a table below. User could choose a record in the table and a form to edit a record is opened. User modifies the data and click save button. The second form is closed and the user is redirected to the list form(the first one) again.

The criteria fields are put on the valuestack when I pressed a search button in the first form. The criteria fields are removed from the valuestack when I open a form for editing the data. I would like that the choosen values from the criteria fields in the first form remains the same as they were before I open an editing form on return from editing form.

I put the values from the criteria field to the session at the moment, and when the editing form is closed, I read the values from the session to the criteria fields on the first form.

I would like to know if there is amore elegant solution to handle such situation with struts2?

Regards,
Javanus
 
Honk if you love justice! And honk twice for tiny ads!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic