This week's book giveaway is in the Cloud forum.
We're giving away four copies of The Business Blockchain and have William Mougayar on-line!
See this thread for details.
Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need an Idea

 
saurav sarkar
Ranch Hand
Posts: 180
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

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
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
saurav sarkar
Ranch Hand
Posts: 180
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Please help
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Example:

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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic