i'm not totally sure, as I am mainly a c++ programmer, however I am certain
that the \n will work (new line)

String str = "<H1>Select User</H1><br>\nSelect (or change) the users
below.\n";

String str = "<H1>Select User</H1><br>\n" +
             "Select (or change) the users below.\n";

(i'm not totally sure about the second)

When you click view source in ie or netscape, either of the above should come
up as:

<H1>Select User</H1><br>
Select (or change) the users below.

probably the easiest way if you want to continually modify the page would be
to make it load a file and write a class to insert values at the correct
point.

ie. the html file could contain

<html>
The value is ***VALUE***
</html>

after running the class the string containing the html doc could be converted
to:

<html>
The value is 18934
</html>

This makes it a hell of alot quicker and easier if you are regularly modifying
the pages.

Hopefully one of these can prove useful
Rob

Parag Thakker <[EMAIL PROTECTED]> wrote:
> Hi
>
> In Java how do we declare String on multiple line
>
> say String str =
> " <H1 >Select User  </h1> <BR>
> - Select (or change) the users below.";
>
>
> What character needs to be put in end
> Basically i want to send HTML text on a page
> is it possible to do without reformatting and
> concating?
>
> I would appreciate if anyone could let me know
>
> Parag



____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

___________________________________________________________________________
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

Reply via email to