struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Nenning <>
Subject RE: Editing a JPA entity
Date Thu, 07 Jan 2016 09:31:53 GMT
> Christoph I understand why this happens, I was simply asking if there 
was a
> better way to do this using some struts session magic or such. Seems 
> isn't so I'll just do it the old long winded way.

If you want to store attached entities in session you can make your 
actions SessionAware:

Of course that means you introduce state on your server which causes lots 
of problems.

If you want to keep your app stateless struts can help you with loading 
and updating entities via the "paramsPrepareParamsStack".

You can read a little about it here:


This Email was scanned by Sophos Anti Virus

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message