Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Forwarding
- Break
- 요구사항정의서
- webserver #WAS #ServerApp
- 김영한
- Dispatcher
- 화면정의서
- CONTINUE
- WAS
- Servlet
- 피그마
- 한글깨짐
- Request
- 다형성 #부모타입 #자식타입
- POST방식
- 톰캣
- xml
- while문
- Spring MVC
- JSON형식의 response
- GET방식
- https://www.inflearn.com/course/lecture?courseslug=%ea%b9%80%ec%98%81%ed%95%9c%ec%9d%98-%ec%8b%a4%ec%a0%84-%ec%9e%90%eb%b0%94-%ea%b8%b0%eb%b3%b8%ed%8e%b8&unitid=194711
- https://www.inflearn.com/course/lecture?courseslug=%ea%b9%80%ec%98%81%ed%95%9c%ec%9d%98-%ec%8b%a4%ec%a0%84-%ec%9e%90%eb%b0%94-%ea%b8%b0%eb%b3%b8%ed%8e%b8&unitid=194709&category=questiondetail&tab=community&q=1314387
- sendRedirect
- https://www.inflearn.com/course/lecture?courseslug=%ea%b9%80%ec%98%81%ed%95%9c%ec%9d%98-%ec%8b%a4%ec%a0%84-%ec%9e%90%eb%b0%94-%ea%b8%b0%eb%b3%b8%ed%8e%b8&unitid=194690
- 매핑 #
Archives
- Today
- Total
Step it up now
POST 방식 한글 깨질 때 본문
POST : 별도로 한글처리 필요/ 안하면 글자 깨짐
<!-- EncodingFilter 정의하기
아래 filter가 post방식에 대한 한글처리를 지원하는가?
web.xml문서는 deployment descriptor -DD파일 - 배포서술자 번역
@annotation으로 번경됨 -->
<filter>
<filter-name>CharacterEncoding</filter-name>
<filter-class>org.apache.catalina.filters.SetCharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>utf-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CharacterEncoding</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
📢 WEB-INF/lib/web.xml 에 위 코드를 추가해주면 해결된다
postman이용시 GET방식일때 params로 한다, 한글이 안깨짐 -> 쿼리스트링으로 전달되기 때문에
'수업 > servlet, JSP' 카테고리의 다른 글
POJO-2 (0) | 2023.12.15 |
---|---|
[POJO] 오라클에 db 업데이트 (0) | 2023.12.12 |
sendRedirect (0) | 2023.12.06 |
Front Controller (1) | 2023.12.05 |
req/res3) forwarding, request (1) | 2023.12.05 |