Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

Better way to use Struts2 action with loading, excuting and re-loading of form

Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I am not sure whether same topic discussed before or not. But whenever, I come across S2 action, I find it bit uneasy to do initialization of page (when user directed from other link, i.e. may be menu or link/button on other form). I read about it and find that we can use to do initialization but again it will be executed every time, my invoked. Basically, what I am looking for is as below,
  • User click on link/button to load the page
  • First initialization of page should show default values like combo box, checkbox list, radio list or text box default value
  • Once user enter required values and click on submit then either it should redirected to main page with valid message (I have done this part) or show the same page with entered values not the default

  • Is there any better way to do this?

    Posts: 9626
    Mac OS X Linux Windows
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Have you taken a look at the tutorials? I think the CRUD demo is exactly what you are looking for.
    This. Exactly this. This is what my therapist has been talking about. And now with a tiny ad:
    free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
      Bookmark Topic Watch Topic
    • New Topic