This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
Author

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.


Merrill
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.
 
GeeCON Prague 2014
 
subject: Help with Struts in Webshere...