Try using hidden form fields for non-editable fields .. and keep the rest as they are.. hope this works fine for your requirements .
Thanks & Regards
Joined: Jan 20, 2013
Thanks for the reply. I came to know that object in the session can't be edited directly by using a text field attribute as that may create a security threat. Using hidden variables works fine. But as I have number of fields as hidden variables that didn't became a solution. Instead I have used Struts interceptors. I reconstructed object in prepare method of preparable interceptor & session. Thanks for the help.
subject: How to update session values from JSP in Struts 2