Having CF parse another file type

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Having CF parse another file type

    I'm running IIS 5, Windows 2000, and MX. I can't seem to get it to work. Lets
    say I have a new file type I named ".xyz". How do I get Cold Fusion to parse
    all of these files the say way a .cfm file is parsed?

    Thanks.



    gobbawee Guest

  2. Similar Questions and Discussions

    1. HowTo Send Uploaded File with INPUT Type file to Sql Server Image Data Type
      I have the following problem: I have the following form client side: <FORM.......> <FORM action="./WZUpload.asp" method="Post"...
    2. HowTo Send Uploaded File with INPUT Type file to Sql Server Image Data Type ?
      I have the following problem: I have the following form client side: <FORM.......> <FORM action="./WZUpload.asp" method="Post"...
    3. File-format Module Cannot Parse the File?
      A family member is sending me photos in Compu-Serve GIF format and they are averaging 3-4 MB per photo. I don't think she knows about compression....
    4. #17988 [Asn->Csd]: strtotime fails to parse timestamp type from postgresql
      ID: 17988 Updated by: derick@php.net Reported By: jam at newimage dot com -Status: Assigned +Status: ...
    5. Parse HTML file, output to csv file
      Message-ID: <2d0bce63.0307041035.78a2bd75@posting.google.com> from riddlermarc contained the following: If you only want to do this...
  3. #2

    Default Re: Having CF parse another file type

    Right click my computer > manage > services and applications > internet
    information service > web sites > right click default web site (or whatever its
    called) > properties > home directory > configuration > mappings

    then add a new mapping for your new file extension with the same executable
    path as the one the .cfm mapping has. e.g.:

    Executable: C:\CFusionMX\runtime\lib\wsconfig\1\jrun.dll
    Extension: .xyz
    Verbs: All Verbs
    Script Engine: checked
    Check file exists: unchecked

    Hope that helps,

    Jack

    Jak-S Guest

  4. #3

    Default Re: Having CF parse another file type

    Jack - thanks for your response. I have done that and now only get a "Page
    cannot be displayed" error for an "xyz" file.

    The xyz file only has a #now()# statement in it, as a test.

    any ideas? Thanks.

    gobbawee Guest

  5. #4

    Default Re: Having CF parse another file type

    when you add .xyz to the extension list in IIS it just tells IIS to forward
    the request to the ColdFusion engine for processing. You will need to tell
    ColdFusion how to deal with the .xyz filetype as well.

    First, let me preface this with the fact that I haven't tried this and it
    may not work, but it should...

    Look on the web for how to properly configure a J2EE web.xml file. This
    will be located in the WEB-INF directory at either
    C:\CFusionMX7\wwwroot\WEB-INF or C:\INetPub\wwwroot\WEB-INF. If you open it
    up you can see the servlet mappings about 2/3 of the way down. This tells
    coldFusion what to do with a file of a given file type (generally cfc, cfm,
    etc.).


    Dean

    "gobbawee" <webforumsuser@macromedia.com> wrote in message
    news:d0f6vc$fgn$1@forums.macromedia.com...
    > Jack - thanks for your response. I have done that and now only get a
    "Page
    > cannot be displayed" error for an "xyz" file.
    >
    > The xyz file only has a #now()# statement in it, as a test.
    >
    > any ideas? Thanks.
    >

    Dean Harmon Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139