Create a Test.jsp as follows and run it. It will open Excel in a browser.
HTH! <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <HTML> <HEAD> <Title>Excel Format</Title> <% response.setContentType("application/vnd.ms-excel"); response.setHeader("Content-Disposition","inline" ); ServletOutputStream outStream = response.getOutputStream(); PrintWriter pw = response.getWriter(); pw.println("<HTML>"); pw.println("<HEAD>"); pw.println("</HEAD>"); pw.println("<BODY>"); pw.println("<TABLE border=0 cellpadding=0 cellspacing=0>"); pw.println("<TR>"); pw.println("<TD>Custom Reports Process - xxx Report</TD><!--- Cell : A1 --->"); pw.println("<TD></TD><!--- Cell : B1 --->"); pw.println("</TR>"); pw.println("<TR>"); pw.println("<TD>Selection Criteria</TD><!--- Cell : A2 --->"); pw.println("<TD> </TD><!--- Cell : B2 --->"); pw.println("</TR>"); pw.println("</TABLE>"); pw.println("<p>This is a test<br>"); pw.println("</BODY>"); pw.println("</HTML>"); pw.println("Testing$$$$$$$"); pw.flush(); pw.close(); %> </BODY> </HTML> -- Original Message -- > >Hi Can anyone send me a sample code for opening an MS-EXCEL using struts >. ... or some tips on how/where to set the content-type ,etc Thanks Regards, Syed >Niaz > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > Ajay Chitre Diligent Team, Inc. (Where Diligent People Work as a Team) http://www.DiligentTeam.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>