Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
> Hi, i just want to ask how can i create an excel file in java servlets? i have found one but it uses VJ++. Sorry, the posting didn't have the expected result. The listing I've I'll try it again. import java.io.*; public class xls extends HttpServlet { public void doGet( HttpServletRequest request, StringBuffer result = new StringBuffer(); response.setContentType(\"application/vnd.ms-excel\"); //response.setContentType(\"text/html\"); PrintWriter out = response.getWriter(); result.append(\"
out.println( result.toString() ); } Replies: |
Sponsored Links
|