Originally posted by Satou kurinosuke:
You cannot put primitives (int, char...) directly into a session attribute.
But you can use wrappers (Integer, Character...) instead.
With
Java 5 you dont need to create wrapper objects. Auto boxing will ensure that appropriate wrapper objects are created.