File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Need an Idea Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Need an Idea" Watch "Need an Idea" New topic

Need an Idea

saurav sarkar
Ranch Hand

Joined: Jan 07, 2007
Posts: 180

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,

Be Objectively Oriented.Explore the power of OOPs.
My Blog, Eclipse EMF Query committer.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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.

Consultant, Sima Solutions
saurav sarkar
Ranch Hand

Joined: Jan 07, 2007
Posts: 180

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

Joined: Feb 15, 2005
Posts: 4864
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 ]
I agree. Here's the link:
subject: Need an Idea
It's not a secret anymore!