• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need an Idea

 
Ranch Hand
Posts: 180
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic