Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

jsps and line breaks in Netscape

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
in jsp a thing written like
<input type=&quot;button value=&quot;decode> turns into
<input type=&quot;butt
on&quot; value=&quot;decode&quot;> in the HTML file supplied to the browser at times. This means that this additional line break in between the input type description is taken as a valid character in Netscape and so the field is very different from as it should be. This problem of line breaks gets ignored if it is not in the field descriptions as in that case it is ignored. Is there some way to ensure that this will be written in a single line.

Please do not suggest out.println as a solution as we have already tried it and it does not work as the servlet code generated does put it's own line breaks also.
 
What about out.print() without the ln? This causes the String to be placed in the Output Buffer without a newline(\n) at the end.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top