I done the same thing, but it's not working.
Anyways now I used session.setAttribute() in my Action class and session.getAttribute() in my JSP page and it's working fine..
Arpit, your action will have a form bean associted with it right? just declare i in form bean and set it in your action class. In jsp use <bean:write> tag.
it should work....
Don't get me started about those stupid light bulbs.