Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JSP
Problem in exporting the jsp in excel
pankaj semwal
Ranch Hand
Posts: 303
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi List[],
Below is my
jsp
.I am trying to export this jsp to excel file.
But its still opening in jsp .Please tell me where i am wrong.
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%> <%@ taglib prefix="s" uri="/struts-tags"%> <%@ page language="java" pageEncoding="ISO-8859-1"%> <% String siteId="salary"; response.setContentType( "application/vnd.ms-excel"); response.setHeader( "Content-Disposition", "attachment; filename=Pankaj.xls"); %> <html> <table> <tr> <td> name </td> <td> Class </td> </tr> </table> </html>
Ram Para
Ranch Hand
Posts: 50
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" contentType="application/vnd.ms-excel; charset=windows-1252" %>
make sure that these two lines are on the top of jsp.
Ram Parashar
http://doinfinite.com
pankaj semwal
Ranch Hand
Posts: 303
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I added these lines in the top of jsp.
But still the same problem is coming.
Thanks
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Tiels tags are not processing
NullPointerException on tiles
JSP Processing Error
Struts1 tiles
Form getting submited multiple times + Struts 2.1 +Ajax
More...