[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

AW: Additional characters from my gnujsp pages !!


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/>