Struts 2 + Reading & Writing

I'm writing an application using Struts 2.

I need to read data from the action class and display in a table/drop down/textbox.

I've checked and tried a lot of examples on the net, but none has helped me.

So, can someone help me with that.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Can you specify what exactly is the error you are getting? Forwarding to an action, writing data as attributes to the request and using them to display on the view is fairly easy in struts2.
vks_vickyAuthor Commented:

I'm not getting an error, its just that I'm not sure how to do it. Currently I'm writing the result to the page session and continuing to work.

So I need some help on how to configure the struts.xml/myop.xml and the action class and the JSP.

I'm looking for a complete working end-to-end example, a simple program.

Please refer to the link below for a very simple example in Struts2; let me know if you require any help.
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Ravi KallaTechnology LeadCommented:
below tutorial is a simple and illustrated with small examples. Hope this helps you...
from where u want to read data?
vks_vickyAuthor Commented:

Sorry for the delay in the response.

Struts2 requires you to define private variable and requires setter and getter method to send and receive the data.

Most of the examples on the net don't work, but once you add setter and getter, it works both ways.

Thanks for all the help and Cheers!!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Applications

From novice to tech pro — start learning today.