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

Collections in Struts jsp

titan sim

Joined: Oct 06, 2003
Posts: 9
I've a value object, which returns a id and email Collection.

My action class will put the VO into the actionForm and then into request scope.
On my jsp, I can display the id by using <html:text>. However, if I use <html:text>, it will not display my email values.
how do i display the email collection, it should be able to display 1 textbox for each value.
Eg. if my Email has value, then the display will be something like this:
<input type=text name=??>
<input type=text name=??>
pls help, thanks!
Junilu Lacar

Joined: Feb 26, 2001
Posts: 6529

Either use logic:iterate or the JSTL forEach. See this article:

Junilu - [How to Ask Questions] [How to Answer Questions]
I agree. Here's the link:
subject: Collections in Struts jsp
It's not a secret anymore!