Hi all,

I think I have a relative easy question.

I have a J2EE application which has some entitybeans. I want to display 
the values of these entitybeans in my JSP pages (using Struts).
I have made value objects of the entitybeans. 

In my ListAllCategoriesAction.java, I do something like the following:

Collection allCategories = mySessionFacade.getAllCategories();
DisplayBean displayBean = new DisplayBean();
displayBean.setCategories(allCategories);
request.setAttribute("categories", displayBean);
return mapping.findforward( SUCCESS );

As you can see I'm using a special bean (displayBean) to pass the 
categories to my JSP page. In my JSP page I use the <logic:iterate> tags 
to iterate through te collection and display the proper information.

Is this a normal / good approach? Or do I have to use ActionForm classes 
for this purpose?

Thanks a lot,

Harm de Laat
Informatiefabriek
The Netherlands



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to