- jsp api파싱
```
<%
Maplist = new HashMap();
Iterator iterator = list.keySet().iterator();
String select = request.getParameter("textfield");
select = new String(select.getBytes("8859_1"),"euc-kr");
try {
String strUrl = "http://tourapi.busan.go.kr/openapi/service/BusanTourInfoService/getLuxuryTourList?
ServiceKey=iOsw4MlgRU0JZpvuR5AkLUfkX%2FAOl0Q03HF78VRzR2g0dz6iD0esiw6HmLHKly6PVvGVP2PPgRpqtpULJBWSHg%3D%3D&numOfRows=112";
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(strUrl);
NodeList nodeUrl = document.getElementsByTagName("dataTitle");
NodeList nodeUrl2 = document.getElementsByTagName("dataSid");
for(int i=0;i<112;i++)
{
list.put(nodeUrl.item(i).getFirstChild().getNodeValue(),nodeUrl2.item(i).getFirstChild().getNodeValue());
}
}catch(Exception e) {
throw e;
}
%>
```
## 자주 하는 실수
- 기본기능으로 때우려고함
## 큐
- 어차피 헷갈리니 자주보고쓰자
## 내가 모르는 것
- api파싱및 맵으로받기
## 일정
- 14:00 ~ 15:00 : 운동
- 15:00 ~ 16:00 : 운동
- 17:00 ~ 18:00 : 공부, 영상1업로드
- 18:00 ~ 19:00 : 공부, 영상2업로드
- 19:00 ~ 20:00 : 공부, 영상3업로드
- 20:00 ~ 21:00 : 공부
- 21:00 ~ 22:00 : 공부
'공부기록' 카테고리의 다른 글
공부기록, 2021-07-23(react) (0) | 2021.07.23 |
---|---|
공부기록, 2021-07-22(expo) (0) | 2021.07.22 |
공부기록, 2021-07-14(jsp) (0) | 2021.07.20 |
공부기록, 2021-07-19(jsp) (0) | 2021.07.19 |
공부기록, 2021-07-14(jsp 쿠키) (0) | 2021.07.16 |