Thank you Merill. Well actualy I implemented the second way most of the places. It works fine. I was wondering if there is a struts way of handling this issue and hence I posted that question. You showed me a way using the framework. I would try to implement the same.