반응형
Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Selenium
- Netty
- docker compose mysql
- grafana
- Airflow
- RabbitMQ
- spring cloud
- mybatis
- WebLogic
- JPA
- QueryDSL
- MySQL
- docker-compose
- argo cd
- Redis Sentinel
- coalesce
- vue.js
- netflix oss
- weblogic 10
- cassandra
- jmeter
- KAFKA
- Spring Open Feign
- Hibernate
- ChannelPipeline
- docker
- redis
- Docker Compose
- spring boot
- spring boot redis
Archives
- Today
- Total
IT.FARMER
JSP 페이지에서 엑셀 파일 다운로드 본문
반응형
1. 첫번째 방법
<%
response.setHeader("Content-Disposition", "attachment; filename=diary.xls");
response.setHeader("Content-Description", "JSP Generated Data");
response.setContentType("application/vnd.ms-excel");
%>
2. 두번째 방법
<%@ page contentType="application/vnd.ms-excel;charset=euc-kr" %>
<%
response.setHeader("Content-Disposition", "attachment; filename=LIST.xls");
response.setHeader("Content-Description", "JSP Generated Data");
%>
JSP 페이지위에 다음과 같이 선언해 준뒤
<HTML>
<TABLE>
<!-- for 혹은 while을 사용해서 TABLE완성
<TR>
<TD>
반응형