-
Jan 25th, 2011, 09:39 AM
#1
Difference @SessionAttributes
Hi,
Can any one tell what is the difference b/n following two:
@SessionAttributes(types =Invoice.class)
@SessionAttributes("invoice")
I have following form definition.
<form:form modelAttribute="invoice" commandName="invoice" enctype="multipart/form-data">
by doing @SessionAttributes("invoice") I am getting error at the time when new Invoice is created .
and by doing @SessionAttributes(types =Invoice.class) I am getting error at the time of invoice update. at update error is:
ERROR [AbstractFlushingEventListener] Could not synchronize database state with session
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules