Results 1 to 2 of 2
  1. #1
    raju.i is offline Member
    Join Date
    Jan 2010
    Posts
    9
    Rep Power
    0

    Default Is this the right way of writing html code in java??

    Can any one tell wheather this is the correct way of writing the html inside java.

    PrintWriter out = response.getWriter();
    response.setContentType("text/html");
    out.println("<html><td>");
    out.println(al.add("<tr>test3@yahoo.com</tr>"));
    out.println(al.add("<tr>test4@yahoo.com</tr>"));
    out.println(al.add("<tr>test5@yahoo.com</tr>"));
    out.println("</td></html>");

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Why do you have to do that?
    Why not use a JSP for the HTML?

Similar Threads

  1. read html code of web page
    By asheeshiit in forum Advanced Java
    Replies: 9
    Last Post: 01-07-2014, 10:31 PM
  2. Help in writing the output in html file
    By aks.nitw in forum Advanced Java
    Replies: 5
    Last Post: 01-18-2010, 02:33 PM
  3. Convert java code to midlet code
    By coldvoice05 in forum New To Java
    Replies: 1
    Last Post: 08-12-2009, 12:14 PM
  4. [SOLVED] retrieve the html code of any web page
    By Omarero in forum New To Java
    Replies: 3
    Last Post: 02-18-2009, 11:20 PM
  5. Placing java code/html pages on website host
    By Bomber_Will in forum New To Java
    Replies: 8
    Last Post: 11-30-2008, 05:31 PM

Posting Permissions

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