Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
export data to Excel file in JSP
Name: priti Date: April 7, 2005 at 21:45:43 Pacific OS: Win 2000 Prof. CPU/Ram: P3
Comment:
Hi, I need help on exporting data to excel file in JSP. Code contains: <%@ page content-type=application/vnd.ms-excel" language="java"> PrintWriter pw = new PrintWriter(); My question is, I get multiple data such as machine type, serial no., description from the DB2 database. I have following statements in code : while (rs.next) { //collecting data from database machinetype= rs.getString(1); .... pw.println(machinetype + serialno + description); } pw.flush(); pw.close();
}
I do not get this work. Any help would be appreciated. Thanks.
Summary: Hi, how can I create a hyperlink to a file not on the webserver but on the user's PC? The users of the webpage will all have access to a network drive that contains a certain file that they need to op...
Summary: Just so we're clear you have the following structure: [main] --[home] --[bedroom] When specifying the path, you can move up a folder by using a double period ".." So, in a page that exists within the ...
Summary: Hi all, I am very new to jsp. In my jsp, I am trying to use "multipart/form-data" in my form. When I use <FORM name="form1" action="\test.jsp" enctype="multipart/form-data" method="POST"> I can n...