The contentType Attribute
Format
<%@ page contentType="MIME Type" %>
<%@ page contentType="MIME Type;
charset=Character Set"%>
Purpose
Specify the MIME type of the page generated by the 
servlet that results from the JSP page
41
JSP
www.corewebprogramming.com
Generating Excel Spreadsheets
First   Last    Email Address
Marty   Hall    hall@corewebprogramming.com
Larry   Brown   brown@corewebprogramming.com
Bill    Gates   gates@sun.com
Larry   Ellison ellison@microsoft.com
<%@ page contentType="application/vnd.ms excel" %>
<%   There are tabs, not spaces, between columns.   %>
42
JSP
www.corewebprogramming.com
21




  

Home

About Services Network Support FAQ Order Contact
 

Java Web Hosting

Our partners:Jsp Web Hosting Unlimited Web Hosting Cheapest Web Hosting  Java Web Hosting Web Templates Best Web Templates PHP Mysql Web Hosting Interland Web Hosting Cheap Web Hosting PHP Web Hosting Tomcat Web Hosting Quality Web Hosting Best Web Hosting  Mac Web Hosting 

Lunarwebhost.net  Business web hosting division of Vision Web Hosting Inc. All rights reserved