• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with Struts in Webshere...

 
Bryce Martin
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bryce Martin
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. I ended up just using JSTL. Works like a charm.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic