This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a simple java application which i am wrting on struts. As Merill and others know i had problem with starting this project. Now i have developed many modules of it. I now need some idea how to display the contents in a JSP. I have an employee table where there are corresponding leads. I want to display all the employees per lead. I am not getting how to display the contents. I can get the arraylist containing the rows. BUt i am not able to get how to show the content per lead.
I am guessing i can do it by nesting logic tags. Please help me out
Thanks to All, Saurav
Be Objectively Oriented.Explore the power of OOPs.
My Blog, Eclipse EMF Query committer.
We would need more information in order to help you with this. The best thing would be for you to spend some time researching the various Struts Custom tags and then give it a try, and if it doesn't work, post the code and we'll help you fix it.
Thanks Merril for your reply. I have tried to do this way but got stuck
for each project lead i want to display the resorce name. I have an VO which is there in the leadlist. So i am iterating over it to get the employee per lead. My emlist is an ArrayList containing the EmployeeVO/Bean I am not sure how to display the contents.
Joined: Feb 15, 2005
I still have no idea what it is you're trying to do. Perhaps it would help if you post the code in your ActionForm bean along with any other JavaBeans that are found in collection properties of the ActionForm.
It would also help if you gave us an example of how a typical page should look. Give us an example of employees, leads, etc., and how they should all look on a page.
Another thing that would help would be to explain the data structure.
The action form contains a List of XXXXX objects. Each XXXXX object has the following properties: foo, bar and baz which is a list of YYYYYY objects. A YYYYYY object has the following properties: (etc., etc.) [ February 27, 2007: Message edited by: Merrill Higginson ]