Originally posted by amolpalekar kadolkar:
I want to transfer session object from jsp page to model class
how it can be done?
In an MVC architecture, this should
never be done. Passing a view-specific object such as an HttpSession to a model object corrupts the model and ties it to a specific view. What happens if you decide to take the same model and use it for a
Java Swing application? Your model object is dependent on a completely unnecessary
J2EE object.
As an alternatvie, I'd suggest getting whatever value you need from the session in the JSP and passing the value to the model object.