Results 1 to 3 of 3

Thread: [RESOLVED] stupid JSP question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    216

    Resolved [RESOLVED] stupid JSP question

    I know its a jsp question but i hope someone can help me

    this is what I have and it displays to a webpage just fine. But i dont like the format. Thats where i need help.

    response.getwriter().write("label " + info1);
    response.getwriter().write("label2 " + info2);

    the code works and displays but it showes everything on one line. How can I get it to display it on 2 lines. i tried writeln and writeline..but duh ...that didnt work..

    any ideas.

  2. #2
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: stupid JSP question

    Quote Originally Posted by hockey1314
    I know its a jsp question but i hope someone can help me

    this is what I have and it displays to a webpage just fine. But i dont like the format. Thats where i need help.

    response.getwriter().write("label " + info1);
    response.getwriter().write("label2 " + info2);

    the code works and displays but it showes everything on one line. How can I get it to display it on 2 lines. i tried writeln and writeline..but duh ...that didnt work..

    any ideas.
    I haven't touched JSP in years, but I would imagine that your code is simply writing to the page, so try using HTML.


    response.getwriter().write("label " + info1 + "<br />");
    response.getwriter().write("label2 " + info2);

    Should drop it down to the next line.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    216

    Re: stupid JSP question

    your so smart. that did it. i had tried the br but didnt put them inside the quotes. stupid me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width