This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes logic:iterate double spacing?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "logic:iterate double spacing??" Watch "logic:iterate double spacing??" New topic

logic:iterate double spacing??

Jon Ream

Joined: Jan 23, 2004
Posts: 2
Hi folks. Having a problem with the struts logic:iterate tag that's really stumping me. I'm not sure if it's the struts tag, or just an oddity of HTML, but here goes. I have an array of strings (type ArrayList) that I would like to display with whitespace preserved. When looping through the array, the following code:

generates html like the following:

which ends up showing as double spaced in the browser.
Removing the <pre> tags results in single spacing, but then i lose all the whitespace.
Anyone have any ideas??
Thanks in advance.
Jon Ream

Joined: Jan 23, 2004
Posts: 2
hmmm... lost my "double spacing" in the post.... anyhow, the second code sample should have looked like (without the dots)....

It is sorta covered in the JavaRanch Style Guide.
subject: logic:iterate double spacing??
Similar Threads
getting errors
including page with a non-string object
How to use logic:iterate tag
Checkboxes in Struts
getting errors