I'm using an action to retrieve a list of entities and render these as a
list, the user can then select an edit button that calls an action that
retrieves the individual entity and renders the edit page. Once the user has
completed editing they hit the save button which calls the action that calls
the entity manager's merge method to update the db. Each of these actions
call methods of the same action class, but the entity ends up in a detached
state so merge will fail. I could just retrieve the entity again and then
update each data member but this seems like a very messy way to do it. Is
there a better way to do this with struts?

 

I'm using struts 2.3.20 with hibernate 4.3.11

 

 

Reply via email to