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

Help pls -Urgent(logic:iterate)

Vineela Devi
Ranch Hand

Joined: Dec 20, 2003
Posts: 191

I have an arraylists of employee ids and employee names in a form bean.In the action class i have kept formbean in request.

In JSP, iam displaying the employee names which are hyperlinks.When i click on any link the corresponding id should be passed as a parameter to the next action/jsp/whatever it may be.

Anyone pls suggest how to do this.

Thanks in Advance

Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
Try this:

[ May 24, 2004: Message edited by: Lasse Koskela ]

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Vineela Devi
Ranch Hand

Joined: Dec 20, 2003
Posts: 191

Instead of two arraylists ,if i take a HashMap - with key as Employeeid and value as Employee Name, how can i display the employee names and pass the employee id as parameter?

Pls suggest a solution.

Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

Use "value" and "key" in the property attribute.

A good workman is known by his tools.
I agree. Here's the link:
subject: Help pls -Urgent(logic:iterate)
It's not a secret anymore!