• 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

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?

    Regards,
    Nitesh
     
    Bartender
    Posts: 9626
    16
    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.
     
    If you are using a wood chipper, you are doing it wrong. Even on this tiny ad:
    a bit of art, as a gift, that will fit in a stocking
    https://gardener-gift.com
    reply
      Bookmark Topic Watch Topic
    • New Topic