Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cant i access javascript variable after opening ms-word

 
kesava chaitanya
Ranch Hand
Posts: 140
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i have one jsp file;in that i have written
<%
response.setContentType("application/ms-word");
%>
<script language="JavaScript">
document.write("ss")
</script>
i am able to see ms-word document but i couldnt see output ss on the word document;will jsp doesnt access javascript after calling response.setContentType(("application/ms-word")?;if i want to see ss on the word document thru javascript wat i have to do;
plzz help
chaitu
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
kesava,
We don't have many rules at Javaranch, but our naming policy is one of them. Please read this policy and change your display name to comply with it if you wish to continue posting. Thanks.
You can change your display name here.
Also you are not eligible for the book giveaway if your display name does not comply with the policy.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm surprised that MS-Word doesn't complain anything. You need to do much more than just tell the web browser "I'm sending you a Word document" -- you also need to generate the .doc file!
There is an open source project at http://jakarta.apache.org/poi, which aims to provide Java developers libraries for reading and writing MS Office file formats but unfortunately the Word project is still in its infancy (at least it was when I last checked).
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the HTML and JavaScript forum.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic