Html 파일에서 contentType에 따른 File Type... 이걸 이용해서 File download가 가능하다..
application/acad
이런 것들도 있지만,, JSP에서.. <% response.setHeader("Content-Type", "aapplication/x-msdownload"); <%=파일내용출력%>
요케 하면 무조건 download가 가능하다..
이래도 이해가 안가신다면
' Feel Free to Add Your Own Content-Types Here
요걸 참고해서 붙여보시라 그럼 잘 돌아갈것이다.. 누헤헤헤헤 |
출처 - http://blog.ohmynews.com/icorea77/35629
'Development > HTML' 카테고리의 다른 글
html - role attribute (0) | 2014.05.06 |
---|---|
html - <meta> http-equiv Attribute, X-UA-Compatible (0) | 2014.04.29 |
HTML DOM (0) | 2014.03.06 |
html - 웹킷(webkit) (1) | 2013.12.10 |
html - iframe 안에서 밖으로 자바스크립트 통신하기 (0) | 2013.07.27 |