반응형
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 | 31 |
Tags
- redis
- vue.js
- Redis Sentinel
- docker-compose
- Spring Open Feign
- weblogic 10
- docker
- JPA
- coalesce
- mybatis
- RabbitMQ
- netflix oss
- WebLogic
- Docker Compose
- MySQL
- grafana
- Airflow
- spring cloud
- argo cd
- spring boot
- Netty
- Selenium
- spring boot redis
- Hibernate
- ChannelPipeline
- QueryDSL
- docker compose mysql
- KAFKA
- jmeter
- cassandra
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>
반응형