So, I found a bunch of Struts 2 CRUD examples on the Internet:
Struts 2 CRUD Demo
and a few books:
Apache Struts 2 Web Application Development ISBN: 978-1847193391
Struts 2 Design and Programming ISBN: 978-0980331608
But they are all a little different than how to make a band.
Some suggest implementing ModelDriven or Prepareable Java interfaces to invoke the prep function to pre-populate all the required data elements.
Others suggest creating their own PrepareForUpdate action, which calls the prefill function and then redirects to the main editing window.
They are also very versed in how to pass the identifier of an object to indicate which object to receive for editing. SOme offers interceptors that others throw it in URL parameters and retrieve them through an ActionContext or pass them through s: hidden.
Is there a way with which you can perform bulk configuration in Struts 2?
What are the advantages / disadvantages of the above methods?
source
share