Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Displaying a word or excel document in jsp


Message #1 by "Anne" <ama313@e...> on Wed, 3 Jan 2001 17:12:40 -0000
the Content Type is application/msword I think, also you'll need to 
have Word or a Word viewer installed on the PC to handle the datastream 
you are sending.

> -----Original Message-----
> From: ama313@e... [mailto:ama313@e...]
> Sent: 03 January 2001 17:13
> To: pro_jsp@p...
> Subject: [pro_jsp] Displaying a word or excel document in jsp
> 
> 
> I need help on displaying a word document in jsp. I am using 
> a link to a
> jsp page now on the jsp page this is what i have
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <% response.setContentType("applacation/msword");%>
> <html>
> <head>
> <title>document view</title>
> </head>
> <body>
> <a href="/companies/mycompany/NewHelloWorld.doc" 
> target="_blank">document name here</a>
> the first screen display in word format but when i click on 
> document name
> I get garbage.
> Can anyone help me?

--- 
NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS?  Is FREE okay?
Visit EarthWeb for the latest in IT Management, Software Development, 
Web Development, Networking & Communications, and Hardware & Systems.  
Click on http://www.earthweb.com for FREE articles, tutorials,
and discussions from the experts.
---
You are currently subscribed to pro_jsp as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-pro_jsp-$subst('Recip.MemberIDChar')@p2p.wrox.com

  Return to Index