예제 따라하실때 intellij 사용중이시면
""사이에 html로 작성한 소스 복붙하시면 그나마 편해요~
w.write("");
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
성공
<ul>
<li>id=</li>
<li>username=</li>
<li>age=</li>
</ul>
<a href="/index.html">메인</a>
</body>
</html>
w.write("<!DOCTYPE html>\n"
+ "<html lang=\"en\">\n"
+ "<head>\n"
+ " <meta charset=\"UTF-8\">\n"
+ " <title>Title</title>\n"
+ "</head>\n"
+ "<body>\n"
+ "성공\n"
+ "<ul>\n"
+ " <li>id="+member.getId()+"</li>\n"
+ " <li>username="+member.getUsername()+"</li>\n"
+ " <li>age="+member.getAge()+"</li>\n"
+ "</ul>\n"
+ "<a href=\"/index.html\">메인</a>\n"
+ "</body>\n"
+ "</html>");
허선행님 공유 감사합니다^^
답글