• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Opening CHM file directly.  RSS feed

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.

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).
Would you like to try a free sample? Today we are featuring tiny ads:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!