GeeCON Prague 2014*
The moose likes BEA/Weblogic and the fly likes how to open msword file in weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » BEA/Weblogic
Reply locked New topic
Author

how to open msword file in weblogic

saleem javeed
Greenhorn

Joined: Sep 11, 2004
Posts: 5
Hi,

I have recently started using weblogic, i have one application running in tomcat where i can view doc file, if i am uploading the same application in weblogic 8.1, it is not opening in doc format.
In tomcat i can set mime-type in conf folder using the given below

<mime-mapping>
<extension>doc</extension>
<mime-type>application/msword</mime-type>
</mime-mapping>


Can anybody help me how to set in weblogic 8.1. It will be great help for me.

thanks in advance

saleem

Senthil B Kumar
Ranch Hand

Joined: Feb 09, 2004
Posts: 140
<mime-mapping>
<extension>doc</extension>
<mime-type>application/msword</mime-type>
</mime-mapping>

add the above entry to your WEB.XML


Work like you don't need the money. Love like you've never been hated. Dance like nobody's watching. Sing like nobody's listening. Live like it's Heaven on Earth.
Currently I Reside Here WEBlog
saleem javeed
Greenhorn

Joined: Sep 11, 2004
Posts: 5
Hi Senthil,

Which web.xml i have to set, the one in my application.

i put in my application web.xml still it is not showing.


can u help me

thanks
saleem
Senthil B Kumar
Ranch Hand

Joined: Feb 09, 2004
Posts: 140
an application will have a web.xml in it. This entry has to be put into that only.

If your browser doesnt has the plugin to open the word files, that may also be a problem.

What is exactly happening, when you try to open ?
Varun Kumar Gupta
Greenhorn

Joined: Mar 15, 2010
Posts: 1
I have some links on a JSP page (application hosted on weblogic) which point to word documents/.PPT. When i click on the links, they should open up the file download dialog of windows (save to disk/open from current location). Instead, it shows up junk in a new window.

In my Jsp page I have used window.open function, this functinality is working fine on other server like Websphere and Tomcat but getting issue in weblogic server. Is there having any setting at Weblogic server end. Please help me, i ma facing this issue since long time..

In web.xml where I to made the changes, either in weblogic web.xml or in my application web.xml, I have tried both things but not able to resolve it.
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3112
    
  42

Varun, please click the button and start a new topic for your question. Please don't append your own questions on the topics started by others. I'm locking this one.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
 
 
subject: how to open msword file in weblogic