This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Opening CHM file directly.  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created online help file for my application using winCHM. So basicallt its a .CHM file.

I have one hyperlink on my jsp page, namely "Help". Now I want to open the CHM file directly after clicking on the help link directly. Now when I click on the Help link on my jsp, it forces the user to download the CHM file first on local system( and that is the problem, I want to open it directly from remote location after clicking on the help link).

So, please help me.

Thanks
 
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like any file type that requires and external application to open, (PDF, Excel, etc..) your users will need to have the required application installed and will need to have the association set up in their browser.

If it isn't there already, you'll need to add the mime type mapping to either your web.xml file and/or to the global list of mime types in your container.

If all that is done, you can suggest that the browser open the application from within the browser by setting the Content-Disposition header with the 'inline' attribute.

Is CHM a proprietary Microsoft Format?
If so, you might be shutting out users of other platforms (Mac, Linux, etc).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!