how to open an word,excel,pdf,illustrator application using java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hidash
    New Member
    • Mar 2008
    • 7

    how to open an word,excel,pdf,illustrator application using java

    hi all,
    i have a project to open some applications using java. i am creating web page using jsp from the web page i have to open a file example word file with the msword application by clicking a button.
    i need some ideas from u guys. i am struggling for more than six months.so pls give the highest priority to this and helps me.

    advance thanks
    hidash
  • pronerd
    Recognized Expert Contributor
    • Nov 2006
    • 392

    #2
    This is not something you can fully control from the server side. You can set the HTTPResponse MIME type and file extension, which will make it more likely that say an MS Word file will open in MS Word, but it is not for sure.

    The user's browser may also just save the file to disk, or open it in something else. It is entirely dependent on what the end user's PC is set to do for those MIME types.

    Comment

    • hidash
      New Member
      • Mar 2008
      • 7

      #3
      thanks for your reply,
      i achieved the task like what u told.
      but my requirement is i have to open the file with application in the client machine.
      and i have to find whether the application is opened successfully or not.

      thanks in advance
      kumar.

      Comment

      • pronerd
        Recognized Expert Contributor
        • Nov 2006
        • 392

        #4
        Originally posted by hidash
        i have to find whether the application is opened successfully or not.
        That can not be done directly. It would be a HUGE security problem if it could. The only way to do that would be to create a download manager program that would download the file, and then confirm the file was received and opened. To do that each end user would have to download that program and install it first before they could down load files. It would be big pain, require a lot of development time and resources, and be inconvenient for end users.

        Comment

        Working...