Looking at your posts,I think you are trying to answer a set of questions on struts. Get a struts source and read it.You would find more than what you require!
This is not a struts tutorial session. I agree with Pradeep. The solutions for these questions are available in every single resource on Struts on web. All one has to do is Google.