Try using MessageFormat, it would be very similar. Example
out.println(MessageFormat.format("line one\nvariable {0}\nline
three\nvariable {1}",new Object[] {"One","Two"}));
Would send
line one
variable One
line three
variable Two
to the browser without any of those dreaded plus signs.
(*Chris*)
----- Original Message -----
From: Milt Epstein <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 14, 1999 11:06 AM
Subject: Re: HTML Tags
> On Fri, 14 May 1999, Chris Pratt wrote:
>
> > You've got to be kidding, you actually thing that
> >
> > print <<THEEND
> >
> > is vastly superior to
> >
> > out.println("THEEND");
> >
> > I count eight characters difference, look out carpal tunnel syndrome.
=8^)
> > (*Chris*)
> [ ... ]
>
> Umm, I don't think you quite understand what each of these things
> does. To wit, Perl's:
>
> print <<THEEND;
> one line
> another line
> more lines
> ...
> last line
> THEEND
>
> is equivalent to Java's:
>
> out.println("one line");
> out.println("another line");
> out.println("more lines");
> ...
> out.println("last line");
>
> That is, "print <<THEEND" prints everything until a line that contains
> "THEEND".
>
> And this doesn't even take into account interpolating variables in the
> output, as someone mentioned. The Perl syntax is vastly easier to
> write and read. (Note that that may not be the only consideration and
> I'm not necessarily saying that Java should have something like this.)
>
> Milt Epstein
> Research Programmer
> Software/Systems Development Group
> Computing and Communications Services Office (CCSO)
> University of Illinois at Urbana-Champaign (UIUC)
> [EMAIL PROTECTED]
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html