This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Need an Idea" Watch "Need an Idea" New topic
Author

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,
Saurav


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.


Merrill
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.

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 ]
 
 
subject: Need an Idea
 
Similar Threads
BLOB file contents as HTML text
pagination in jsp
form updating using jsp
How to Effort Estimate? Manage Java/JEE based Project? for first time Lead/Manager
Reading db.db file