Jsp

PrintWrite, Forward, JSTL [JSP & HTML]

민돌이 2016. 11. 2. 09:05
반응형

// 인코딩해주기

response.setCharacterEncoding("UTF -8");


PirntWrite


// 화면을 출력하기 위한 객체

PrintWirte out = respponse.getWriter();


// 응답 메시지를 메모리에 담아둔다

out.print("");


// 응답을 클라이언트에게 전송

out.flush();


// PrintWriter 를 담는다.

out.close();


M : Model (데이터 뭉치) -> Servlet이 JSP에게 주고싶을때  

V : View (JSP) -> WEB-INF의 View라는 폴더를 만들어 관리

C : Controller(Servlet)


Forward - View를 보여주는역할


${} -> EL


<c:forEach items="리스트가 들어있는el" var="담을곳">


<c:ifTest>

<c.choose>

<c.when>

<c:otherwise>

<c:import>

<c:out>

<c:set>

.

.



<input type= name= placeholder= style/> <br/> 

<textarea > </tesxtarea>

반응형