[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Home]
Re: AW: Additional Characters from my gnujsp pages
Hi, Ralph:
Thanks for your answer.
Indeed, what happens is what you say.
Now, I have almost solved all the problems that I had.
I only have left it to solve a situation in which I cannot avoid a
carriage
return when I use a file with common code to several jsp pages
of the same application and I use the "include" directive.
File common.jsp
== == == == == == == =
<% @ page import .....
.....
%> <%
....
common code that I use in several pages of the same application
....
%>
File page1.jsp
== == == == == == ==
<% @ include file = 'common.jsp'
%> <%
....
....
File page2.jsp
== == == == == == ==
<% @ include file = 'common.jsp'
%> <%
....
....
File page3.jsp
== == == == == == ==
<% @ include file = 'common.jsp'
%> <%
....
....
In this situation, I cannot avoid a carriage return at the beginning
of the answer of page1, page2 and page3
But I believe that you have already helped me enough.
A greeting.
Luis Miguel M.
----------------------
----------------------
Ralph Einfeldt wrote:
> You have to be carefull what you have between scriplets and jsp tags.
>
> Example:
>
> With
> <% "1" %>
> <% "2" %>
>
> You will get:
> 1
> 2
>
> if you want to avoid this line feed
> you have to use something like:
>
> <%
> "1"
> %><%
> "2"
> %>
>
> and get:
> 12
>
> the same is true for all tags.
>
> So the jsps look like this:
>
> <jsp:useBean ...
> /><%!
> Declare something
> %><%
> Do Something
> %>Some Output<%=
> Print out something.
> %>More Output
>
> > -----Ursprüngliche Nachricht-----
> > Von: L.M.M. [mailto:ETHERMI@terra.es]
> > Gesendet: Donnerstag, 7. März 2002 16:44
> > An: gnujsp@gjt.org
> > Betreff: Additional characters from my gnujsp pages !!
> <snip/>
> > When my jsp pages become text/html there are additional characters
> > at the beginning and the end of the same ones.
> > These additional characters that I can observe in the Browser (the
> > client)
> > are carriage return and other blanks that lack importance in
> > text html, but that they are important in another text type.
> > If what I want is to return to the client text/plain or
> > text/myownformat
> <snip/>