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

  1. #1

    Default Calling Cfc's

    I am developing two applications on the same server that will have a lot of
    overlapping functionality. Hence, I would like to share cfcs between the two.
    My directory structure for the apps is
    /wwwroot/public/app1/index.cfm
    /wwwroot/public/app2/index.cfm

    the cfcs are in /wwwroot/public/com/default.cfc

    However I am getting an error calling default.cfc from either index page. I am
    using the address public.com.default in the CreateObject in the calling pages.
    It seems from the documentation this should be correct - but I am getting a
    template not found exception.

    Any ideas?

    Thanks

    tgs1952 Guest

  2. Similar Questions and Discussions

    1. Does BlazeDS can work with CFC's ???
      Hi all i'm really confused about the BlazeDS release is this remoting service aimed for Java Developers only or can you invoke CFC's functions,...
    2. CFC's and Flex 2.0 Beta
      Hi, I am trying to figure out how to use CFC's with Flex 2.0. Beta. It is my understanding that Flex 2.0 does not require the flex server. I...
    3. Multiple Application.cfc's?
      Is it possible to use multiple application.cfc's in a single application (portal web sites). i know in previous versions all I had to do was...
    4. Pathing with CFC's
      I'm reading Ben Forta's (EXCELLENT) book, but he (as well as every site I've Google'd so far) does not give information about the question I'm going...
  3. #2

    Default Re: Calling Cfc's

    do u have the access="public" in methods of defualt.cfc?
    adonis1976 Guest

  4. #3

    Default Re: Calling Cfc's

    I have a private setter method and a public getter method. It is the latter that is called. Somehow, I think the problem is the addressing.
    tgs1952 Guest

  5. #4

    Default Re: Calling Cfc's

    Can you post the code of those getter & setter and also how u r calling them? may be it will be helpful
    adonis1976 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