the outer c:forEach
beans have been looped.
The problem is however when the c:if condition is not met a white line is written out
by the c:forEach (ie one white line for each iteration regardless of the c:if
condition). This ends up with a MASS of white space on the page. Is there anyway to
stop
with a MASS of
white space on the page. Is there
anyway to stop the c:forEach writing out the white space ?
tia
Chris
***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error
: [EMAIL PROTECTED]
- Original Message -
From: McCormack, Chris [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 5:19 AM
Subject: White space problem
Hi all
I am using struts with jstl. I have a problem that is a bit annoying
Thanks James the first solution worked fine.
Chris
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: 28 January 2004 13:04
To: Struts Users Mailing List
Subject: Re: White space problem
Yes, same as with any tag or scriptlet.
c:forEach
c:if ...
/c:if
:
Is there anyway to automatically remove white space blank
lines and tabs, but
still leave normal lines in place so i can read the html if
necessary. I.e.
remove any occurances of the following:
1. Empty lines including those just filled with tabs.
2. All other tabs.
3. Trailing white space.
Sounds
Hi all,
This may be a JSP issue - I'm not sure. I've noticed that the output html
documents have an extrordinary amount of white space (new lines and tabs).
Running some test where I've hand removed it, I've reduced the resulting
pages by as much as 40% in size.
Is there anyway
Derek Clarkson wrote:
Is there anyway to automatically remove white space blank
lines and tabs, but
still leave normal lines in place so i can read the html if
necessary. I.e.
remove any occurances of the following:
1. Empty lines including those just filled with tabs.
2. All other tabs
My thoughts exactly, I just don't know where and how to do this. ;-)
On Friday 05 December 2003 11:27, Wendy Smoak wrote:
Derek Clarkson wrote:
Is there anyway to automatically remove white space blank
lines and tabs, but
still leave normal lines in place so i can read the html
I would rather use the Ant ReplaceRegexp task to remove unwanted
whitespaces. In the ant build process, you process the JSP source with the
ReplaceRegexp task, then put them into war file, deploy it to the
container. You have full control over the way of chompping whitespaces by
programming the
Consider Tidy from W3.org or jTidy on sf.net for html clean up.
.V
Derek Clarkson wrote:
My thoughts exactly, I just don't know where and how to do this. ;-)
On Friday 05 December 2003 11:27, Wendy Smoak wrote:
Derek Clarkson wrote:
Is there anyway to automatically remove white space blank
Hmmm, I don't know if this would work. From what I can see, most of the white
space is left over from tomcat/struts removing the tags during processing.
The problem seems to be that the servers are not recognising that in their
processing they have effectively removed all text from those parts
of the
white space is left over from tomcat/struts removing the tags during
processing. The problem seems to be that the servers are not recognising
that in their processing they have effectively removed all text from those
parts of the documents and in response, then removing the lines
;
}
}
Original Message
Subject: white space on jsp compile
Date: Thu, 31 Jul 2003 20:21:08 +0100
From: Mike Whittaker [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.struts.user
Is there any way to control it? It seems a little excessive
[mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 9:43 AM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: white space on jsp compile
Mike,
The whitespace and formatting really bugged me as well, so I wrote a
servlet
filter to run the generated html through the Java port of Html tidy
Is there any way to control it? It seems a little excessive
I'd like to retain it in the JSP, and remove as much as possible in the html
--
Mike W
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
To: Struts List
Subject: white space on jsp compile
Is there any way to control it? It seems a little excessive
I'd like to retain it in the JSP, and remove as much as
possible in the html
--
Mike W
-
To unsubscribe, e
[EMAIL PROTECTED][EMAIL PROTECTED](B: "Struts List"
[EMAIL PROTECTED]
world.com cc:
17 matches
Mail list logo