JSTL's or, if you must,
.
d.
--- Minghui Yu <[EMAIL PROTECTED]> wrote:
> struts 1.
>
> I barely made it work by using jsp and bean:define.
>
> type="org.lonetree.tc.core.Book" />
> <%
> Iterator itr=test.getAuthors().iterator();
> while (itr.hasNext())
> {
> out.println(itr.n
struts 1.
I barely made it work by using jsp and bean:define.
<%
Iterator itr=test.getAuthors().iterator();
while (itr.hasNext())
{
out.println(itr.next());
out.println("");
}
%>
I'd like to know how to do in in a nice way.
Thanks.
On Nov 27, 2007 3:57
Are you using struts1 or struts2?
- Omkar
Minghui Yu wrote:
>
> In my Action, I have: request.setAttribute("book", book);
>
> book is a Book object, which has a getAuthors method. getAuthors
> returns a collection (Set)
>
> in JSP page, I want to list authors one by one. How shall I do?
>
>
3 matches
Mail list logo