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 with Struts in Webshere... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Help with Struts in Webshere..." Watch "Help with Struts in Webshere..." New topic

Help with Struts in Webshere...

Bryce Martin
Ranch Hand

Joined: Nov 19, 2007
Posts: 269
I'm writing my first MVC app and I'm doing it in websphere. I've been using websphere for a few months making code mashed jsp's. But I've finally given in and I'm now doing things the right way.

I have a List of beans and I want to iterate through the list producing one HTML table row for each bean. Now, I have the servlet making the list of beans and all seems to be fine there. What I want to do is use the <logic:iterate> tag to run through the list. What do I need to do so that websphere recognizes the <logic:iterate> tag. What do I need to import or include? I know it has to be a simple answer.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
If your project is not already using Struts, I'd suggest you use the JSTL c:forEach tag, rather than the struts logic:iterate tag. It's a more standard way of doing things, and it's also more powerful.

If you don't already know how to use JSTL, I'd suggest spending some time with a tutorial such as this one to get started.

Consultant, Sima Solutions
Bryce Martin
Ranch Hand

Joined: Nov 19, 2007
Posts: 269
Thanks for the reply. I ended up just using JSTL. Works like a charm.
I agree. Here's the link:
subject: Help with Struts in Webshere...
jQuery in Action, 3rd edition