Custom tag paths on shared hosting - shared globally?
I'm trying to debug a config issue with CrystalTech as I upgrade a client from CF7 to CF9 (both of them are shared hosting, not VPS). Testing yesterday, I got an error about not having permission to read a tag from some path that was some other customer's site on the same machine. I emailed support and the end result was them saying that custom tag paths are shared amongst all people on the same machine and that my custom tag had the same name as another user's on the same machine and that was the problem. I would need to change the name of my custom tag to resolve the conflict. Why does this not show up on my client's CF7 shared hosting? Lucky I guess: because no one else on that particular machine has a conflicting tag. I'm not sure if I should be shocked or not. I thought even in a shared hosting environment CF must give hosting providers some way to sandbox these things. Is this a CrystalTech issue or will this be the case for any shared CF hosting provider? I have no issue changing the name of the tag. It's tedious but not hard. Also: now that my client is moving up from CF7, will the new feature in CF8/9 that allows per-application mappings and tag paths resolve this? It would need to replace the global settings rather than just augment them. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333901 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Per-application custom tag paths ( Application.cfc )
Definitely seems to be plural (which makes sense; it's a list of multiple paths). To give another working example, I've ripped the top six lines from the Application.cfc for a Railo app I'm writing: cfcomponent output=false cfset This.Name = {application_name} / cfset This.CustomTagPaths = /tags / cffunction name=onApplicationStart output=false Possibly that's also something worth checking: that you have the code *outside* onApplicationStart, or it'll only be set when that event triggers. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321387 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Per-application custom tag paths ( Application.cfc )
Thanks Ben and Peter. Yeah, I've got it in the pseudo constructor. I'll play around with the snippets and see if anything gives. On Tue, Apr 7, 2009 at 2:17 AM, Peter Boughton bought...@gmail.com wrote: Definitely seems to be plural (which makes sense; it's a list of multiple paths). To give another working example, I've ripped the top six lines from the Application.cfc for a Railo app I'm writing: cfcomponent output=false cfset This.Name = {application_name} / cfset This.CustomTagPaths = /tags / cffunction name=onApplicationStart output=false Possibly that's also something worth checking: that you have the code *outside* onApplicationStart, or it'll only be set when that event triggers. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321400 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Per-application custom tag paths ( Application.cfc )
Ben Forta was like, Yo, this.customtagpaths / listAppend( this.customtagpaths, newPath ). http://www.forta.com/blog/index.cfm/2007/4/24 But then the Adobe documentation's all like, this.customtagpath ( singular ) http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=AppEvents_01.html Either way, neither of those combinations are working for me. Beyond not enabling per-application settings in the administrator, is there something else that could break this mechanism? I'm even testing it with a single full hard path that I can paste into Windows Explorer and will take me to the correct directory. But it cannot find my tags. My poor, sweet tags. All of my other per-application settings are working for this app. Any ideas? ... I don't know how involved the CFIDE folder is in the process, but it might be worth noting that my CFIDE ( and ColdFusion install ) is somewhere completely separate from this application/siteroot/customtagsfolder. Basically ColdFusion: drive:/serverware/cf8/ CFIDE: drive:/serverware/cf8/webroot/cfide/ This app: drive:/webroot/appX/ Note: My CFIDE folder is in a separate folder than where the WEB-INF directory is, which is cf8/wwwroot/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321368 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Per-application custom tag paths ( Application.cfc )
This is how I does it (in Application.CFC): !--- Store the root path to application. --- cfset THIS.RootPath = GetDirectoryFromPath( GetCurrentTemplatePath() ) / !--- Build up an array of custom tag paths. --- cfset THIS.CustomTagPathsArray = [ (THIS.RootPath tags/), ..., ..., ... ] / !--- Set up custom path mappings (comma-separated paths). --- cfset THIS.CustomTagPaths = ArrayToList( THIS.CustomTagPathsArray ) / I don't see any difference. Maybe trying this and see if it works for you. I took this out of a *working* demo. On Mon, Apr 6, 2009 at 4:30 PM, David McGuigan davidmcgui...@gmail.comwrote: Ben Forta was like, Yo, this.customtagpaths / listAppend( this.customtagpaths, newPath ). http://www.forta.com/blog/index.cfm/2007/4/24 But then the Adobe documentation's all like, this.customtagpath ( singular ) http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=AppEvents_01.html Either way, neither of those combinations are working for me. Beyond not enabling per-application settings in the administrator, is there something else that could break this mechanism? I'm even testing it with a single full hard path that I can paste into Windows Explorer and will take me to the correct directory. But it cannot find my tags. My poor, sweet tags. All of my other per-application settings are working for this app. Any ideas? ... I don't know how involved the CFIDE folder is in the process, but it might be worth noting that my CFIDE ( and ColdFusion install ) is somewhere completely separate from this application/siteroot/customtagsfolder. Basically ColdFusion: drive:/serverware/cf8/ CFIDE: drive:/serverware/cf8/webroot/cfide/ This app: drive:/webroot/appX/ Note: My CFIDE folder is in a separate folder than where the WEB-INF directory is, which is cf8/wwwroot/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321371 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Custom Tag Paths
We are load testing one of our internal apps and seeing some odd errors. We defined a cutomtag path in the Application.cfc with 100,000 requests in just under an hour (these request call different pages but 80% use the custom tag, it's a portlet) we see 1-1.5% returning a customtag not found error. It is important to note we are pushing about 7000 users through the system in an hour each hitting only a couple of pages and most users make it through with no error, so not its not configured wrong. We've run the test 3 times now and seen a similar pattern of failure each time. For me the most interesting one was our final running that continued to present this error even with the cutomtag itself was not only on the customtag path but also in the same directory of the calling cfml template. I was curious if anyone else has ever seen this odd behaviour before? We're going to put together a simplified application later this week to see if we can replicate it with a trivial application as well. I'm suspecting sever issues but not sure at this point. Adam Haskell ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312572 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Custom Tag Paths
Hey Adam, You probably have a good handle on what's going on in your environment... certainly better than I do, given that I'm only hearing about it second hand. I just thought I'd throw out that I was a bit confused when I first discovered that CF will throw a template not found error if you get some *other* kind of error like a db or syntax error occuring while executing the Application.cfc onMissingTemplate() method. I'm thinking it's possible (although I would think unlikely) that something like this might be happening in your environment with the custom tags. -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 781.769.0723 http://onTap.riaforge.org/blog ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312592 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Programmatically Creating Custom Tag Paths
This link could help you http://spike.oli.tudelft.nl/jochemd/index.cfm?PageID=22 Qasim -Original Message- From: Tony Pimm [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 5:01 AM To: CF-Talk Subject: Programmatically Creating Custom Tag Paths One of my pet peeves is having to create a custom tag path in the CF Admin so that our custom tags and components are found by CF. What would be really great for us (and I guess loads of other people) would be if we could find a list of all the custom tag paths, check if our desired path is in there, and if not, create it dynamically. Obviously this would only need checking once per application initialization. Does anyone know anywhere in the ServiceFactory or other hidden area of the CF java core that will allow us to do this? Many thanks. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
At Startup, CFMX spiders all custom tag paths? Slow start up...
I've been trying to figure out why my server is so slow to start up - I may have found the answer, although I am still investigating this. I amusing the fileMon utility from sysinternals to see what files are being accessed by CFMX on the first request after the service is restarted. What I have found is that, on the first run, as soon as a cfc is invoked wth: cfinvoke component=mycomponentpath.mycomponent ALL of the custom tags paths in the cfadminister are spidered. (BTW - I have the creation of class files turned off). One of my problems may have been that one of my custom tags paths contains a couple fo directories with thousands of files (they were mail files, unrelated to CF, yet, using filemon I could see that ALL the files were being accessed!. Here is an example of what filemon shows. It apparently shows that ALL of the CFC's (but actually ANYTHING in the custom tag path, even images...) get opened or queried. Also, prior to my first call to cfinvoke I use cfobject to create instances of several CFC's using the same path, and when I do this, it does not cause JRUN to do the same disk activity along the custom tag paths. Is my server configured correctly? Is this just normal server behavior? Whats shown below is repeated for all the CFC's and all custom tags. When my custom tag path includes a directory which had a folder with *.mail files in it. ALL of those files were being opened also I'm a bit confused. Also, I had my website root f:\websites\www.mysite.com\ as the custom tag path, and the log contains all the gif's and jpegs being opened by Jrun log file snippet: 1241411:59:33.588 AM jrun.exe:2612FSCTL_IS_VOLUME_MOUNTED C:\CFusionMX\runtime\binSUCCESS 1241511:59:33.588 AM jrun.exe:2612FASTIO_QUERY_OPEN C:\CFusionMX\CustomTags\iCCVerify.cfmSUCCESS Attributes: CA 1241611:59:33.588 AM jrun.exe:2612FSCTL_IS_VOLUME_MOUNTED C:\CFusionMX\runtime\binSUCCESS 1241711:59:33.588 AM jrun.exe:2612FASTIO_QUERY_OPEN C:\CFusionMX\CustomTags\imagetree_expandfolder.lf SUCCESS Attributes: CA 1241811:59:33.588 AM jrun.exe:2612FSCTL_IS_VOLUME_MOUNTED C:\CFusionMX\runtime\binSUCCESS 1241911:59:33.588 AM jrun.exe:2612FASTIO_QUERY_OPEN C:\CFusionMX\CustomTags\imagetree_expandfolder.lf SUCCESS Attributes: CA 1242011:59:33.588 AM jrun.exe:2612FSCTL_IS_VOLUME_MOUNTED C:\CFusionMX\runtime\binSUCCESS 1242111:59:33.588 AM jrun.exe:2612FASTIO_QUERY_OPEN C:\CFusionMX\CustomTags\iMSmailBackup.cfm SUCCESS Attributes: CA 1242211:59:33.588 AM jrun.exe:2612FSCTL_IS_VOLUME_MOUNTED C:\CFusionMX\runtime\binSUCCESS 1242311:59:33.588 AM jrun.exe:2612FASTIO_QUERY_OPEN C:\CFusionMX\CustomTags\iMSmailBackup.cfm SUCCESS Attributes: CA 1242411:59:33.588 AM jrun.exe:2612FSCTL_IS_VOLUME_MOUNTED C:\CFusionMX\runtime\binSUCCESS 1242511:59:33.588 AM jrun.exe:2612FASTIO_QUERY_OPEN C:\CFusionMX\CustomTags\iMSmailBackup_preCFMX6-1.cfm SUCCESS Attributes: CA 1242611:59:33.588 AM jrun.exe:2612FSCTL_IS_VOLUME_MOUNTED C:\CFusionMX\runtime\binSUCCESS 1242711:59:33.588 AM jrun.exe:2612FASTIO_QUERY_OPEN C:\CFusionMX\CustomTags\iMSmailBackup_preCFMX6-1.cfm SUCCESS Attributes: CA 1242811:59:33.588 AM jrun.exe:2612FSCTL_IS_VOLUME_MOUNTED C:\CFusionMX\runtime\binSUCCESS 1242911:59:33.588 AM jrun.exe:2612FASTIO_QUERY_OPEN C:\CFusionMX\CustomTags\iMSWrapper.cfmSUCCESS Attributes: A 1243011:59:33.588 AM jrun.exe:2612FSCTL_IS_VOLUME_MOUNTED C:\CFusionMX\runtime\binSUCCESS 1243111:59:33.588 AM jrun.exe:2612FASTIO_QUERY_OPEN C:\CFusionMX\CustomTags\iMSWrapper.cfmSUCCESS Attributes: A 1243211:59:33.588 AM jrun.exe:2612FSCTL_IS_VOLUME_MOUNTED C:\CFusionMX\runtime\binSUCCESS 1243311:59:33.588 AM jrun.exe:2612FASTIO_QUERY_OPEN C:\CFusionMX\CustomTags\isemail.cfm SUCCESS Attributes: A 1243411:59:33.588 AM jrun.exe:2612FSCTL_IS_VOLUME_MOUNTED C:\CFusionMX\runtime\binSUCCESS 1243511:59:33.588 AM jrun.exe:2612FASTIO_QUERY_OPEN C:\CFusionMX\CustomTags\isemail.cfm SUCCESS Attributes: A 1243611:59:33.588 AM jrun.exe:2612FSCTL_IS_VOLUME_MOUNTED C:\CFusionMX\runtime\binSUCCESS 1243711:59:33.588 AM jrun.exe:2612FASTIO_QUERY_OPEN C:\CFusionMX\CustomTags\_javascript_.cfmSUCCESS Attributes: CA 1243811:59:33.588 AM jrun.exe:2612FSCTL_IS_VOLUME_MOUNTED C:\CFusionMX\runtime\binSUCCESS 1243911:59:33.588 AM jrun.exe:2612FASTIO_QUERY_OPEN C:\CFusionMX\CustomTags\_javascript_.cfmSUCCESS Attributes: CA 1244011:59:33.588 AM jrun.exe:2612FSCTL_IS_VOLUME_MOUNTED C:\CFusionMX\runtime\binSUCCESS 1244111:59:33.588 AM jrun.exe:2612FASTIO_QUERY_OPEN C:\CFusionMX\CustomTags\lfAccountGrid.cfm SUCCESS Attributes: A 1244211:59:33.588 AM jrun.exe:2612FSCTL_IS_VOLUME_MOUNTED C:\CFusionMX\runtime\binSUCCESS 1244311:59:33.588 AM jrun.exe:2612FASTIO_QUERY_OPEN C:\CFusionMX\CustomTags\lfAccountGrid.cfm SUCCESS Attributes: A 1244411:59:33.588 AM jrun.exe:2612FSCTL_IS_VOLUME_MOUNTED C:\CFusionMX\runtime\binSUCCESS fileMon from systernals http://www.sysinternals.com/ntw2k/source/filemon.shtml. [Todays Threads] [This Message
Programmatically Creating Custom Tag Paths
One of my pet peeves is having to create a custom tag path in the CF Admin so that our custom tags and components are found by CF. What would be really great for us (and I guess loads of other people) would be if we could find a list of all the custom tag paths, check if our desired path is in there, and if not, create it dynamically.Obviously this would only need checking once per application initialization. Does anyone know anywhere in the ServiceFactory or other hidden area of the CF java core that will allow us to do this? Many thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: He3 community input (custom tag paths/mappings)
That's not really what I'm thinking. My thought is to point the IDE to a single url (per development server) that returns stuff like this (in some xml format): Mappings: / = d:\inetpub\wwwroot /funkychicken = d:\inetpub\wwwroot\iama\funkychicken Tags: cf_chickendance = d:\inetpub\wwwroot\iama\funkychicken\chickendance.cfm This information could easily be determined by CF and would work just as fine on a 127.0.0.1 IP as it would a public IP. If the information is changed in the cf server, it would automatically reflect here. It could check the server once when the IDE is loading up then cache it like you're saying.This clearly doesn't solve everything, but it could be a start. If you can make this setup automated, that would be preferable. What it doesn't solve are things like dynamic includes, such as: cfinclude template=#funkychicken# To do that you either need to actually run the template or create a CFML engine. Steve _ From: Matt Liotta [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 10:09 PM To: CF-Talk Subject: Re: He3 community input (custom tag paths/mappings) How about a server component that would somehow translate the location of mappings/tags? I think that would allow you to setup a server once instead of each individual project. That would require that each project know what server to connect to since a developer may want to have different projects deploy to different servers. Further, it would require that the IDE be able to connect to the server during development, which would be annoying on a plane for example. Although, that could probably be solved with some sort of caching/synchronization routine. I certainly can see that it would be annoying to setup project after project with the same settings. However, I am not sure what you are suggesting is any better because of what I mentioned above. -Matt _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: He3 community input (custom tag paths/mappings)
How about a server component that would somehow translate the location of mappings/tags? I think that would allow you to setup a server once instead of each individual project. Steve Nelson _ From: Matt Liotta [mailto:[EMAIL PROTECTED] Sent: Sunday, May 30, 2004 6:05 PM To: CF-Talk Subject: He3 community input (custom tag paths/mappings) For various types of features we would like to implement in He3, we need the ability to locate files that are defined by runtime information which won't be available. Examples of this include resolving cfincludes, custom tag calls, and CFC dot notation references. One way to solve this is for projects in He3 to be configured with custom tag paths and mappings that match the settings in the target platform. That leads to a few implications. First, it requires the developer to actually configure information in a project. I know DWMX's project configuration annoyed me when I was used to just pointing Studio at a file system directory. Second, the project's settings could get out of sync with the target platform thus causing unexpected behavior. Any thoughts on the proposed solution? -Matt _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: He3 community input (custom tag paths/mappings)
How about a server component that would somehow translate the location of mappings/tags? I think that would allow you to setup a server once instead of each individual project. That would require that each project know what server to connect to since a developer may want to have different projects deploy to different servers. Further, it would require that the IDE be able to connect to the server during development, which would be annoying on a plane for example. Although, that could probably be solved with some sort of caching/synchronization routine. I certainly can see that it would be annoying to setup project after project with the same settings. However, I am not sure what you are suggesting is any better because of what I mentioned above. -Matt [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: He3 community input (custom tag paths/mappings)
First, it requires the developer to actually configure information in a project. I know DWMX's project configuration annoyed me when I was used to just pointing Studio at a file system directory Matt, The key in to ensure that I can can get a feel for functionality without slogging my way through a project setup. (Perhaps bundle a series of simple Hello, World! projects that can be used to get a feel for things.) Once I'm sold, the minor investment in setup time won't be a big deal. Second, the project's settings could get out of sync with the target platform thus causing unexpected behavior. Throwing out ideas: - Let me tell the app which files contain vital settings (hopefully, there won't be more than a few per project), and optionally (by default?) remind me to check my project settings when changes are made to those files. - Let me define the settings in the project info, and then automatically insert the values into my files wherever I enter something like [$He3.CFCpath$]. If I change the value, sweep through and update my code. -- Roger Benningfield work: http://journurl.com/ blog: http://admin.mxblogspace.journurl.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: He3 community input (custom tag paths/mappings)
For various types of features we would like to implement in He3, we need the ability to locate files that are defined by runtime information which won't be available. Examples of this include resolving cfincludes, custom tag calls, and CFC dot notation references. One way to solve this is for projects in He3 to be configured with custom tag paths and mappings that match the settings in the target platform. That leads to a few implications. First, it requires the developer to actually configure information in a project. I know DWMX's project configuration annoyed me when I was used to just pointing Studio at a file system directory. Second, the project's settings could get out of sync with the target platform thus causing unexpected behavior. Any thoughts on the proposed solution? Do you see people's settings changing often? Normally (well, for my projects anyway), the settings (DSN, mapping) are setup at the beginning and never change. The main thing that _does_ change are the files. So if your product's concept of projects would auto include all files in a folder, then I think it would be fine. I'd have no issue setting up things like the DSN and mapping since this would only need to be done once per project. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: He3 community input (custom tag paths/mappings)
Do you see people's settings changing often? Normally (well, for my projects anyway), the settings (DSN, mapping) are setup at the beginning and never change. The main thing that _does_ change are the files. So if your product's concept of projects would auto include all files in a folder, then I think it would be fine. I'd have no issue setting up things like the DSN and mapping since this would only need to be done once per project. I'd also point out, that there are times when I want to use full featured editor, but don't necessarily need/want to set up a project just to edit a couple of rogue files. So, I want both a project view and a normal o/s file view--depending on how I'm working at the moment. - Dan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: He3 community input (custom tag paths/mappings)
I'd also point out, that there are times when I want to use full featured editor, but don't necessarily need/want to set up a project just to edit a couple of rogue files. So, I want both a project view and a normal o/s file view--depending on how I'm working at the moment. A huge +1 on this. I hate editors that make me jump through hoops just to do quick edits. Projects should _not_ be required, period. If it means I lose features (like maybe right clicking on a cfinclude and loading the file it loads), thats fine. -Ray [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: He3 community input (custom tag paths/mappings)
I guess I don't need to point out my +1 here. Anyway, my thinking is that if you don't provide the information needed the editor will continue to function, but what offer the same functionality. -Matt On May 31, 2004, at 10:46 AM, Raymond Camden wrote: I'd also point out, that there are times when I want to use full featured editor, but don't necessarily need/want to set up a project just to edit a couple of rogue files. So, I want both a project view and a normal o/s file view--depending on how I'm working at the moment. A huge +1 on this. I hate editors that make me jump through hoops just to do quick edits. Projects should _not_ be required, period. If it means I lose features (like maybe right clicking on a cfinclude and loading the file it loads), thats fine. -Ray [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: He3 community input (custom tag paths/mappings)
Matt, I guess I don't need to point out my +1 here. Anyway, my thinking is that if you don't provide the information needed the editor will continue to function, but what offer the same functionality. I figured that's the way you were doing things, but I figured I might as well re-iterate my preference. Also, one thing I'd like to see in a CF IDE is for the pounded variables to be color coded--I think not color coding variables in CF Studio was a big oversight. (i.e #variables.someVar# should be something that's color coded.) - Dan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
He3 community input (custom tag paths/mappings)
For various types of features we would like to implement in He3, we need the ability to locate files that are defined by runtime information which won't be available. Examples of this include resolving cfincludes, custom tag calls, and CFC dot notation references. One way to solve this is for projects in He3 to be configured with custom tag paths and mappings that match the settings in the target platform. That leads to a few implications. First, it requires the developer to actually configure information in a project. I know DWMX's project configuration annoyed me when I was used to just pointing Studio at a file system directory. Second, the project's settings could get out of sync with the target platform thus causing unexpected behavior. Any thoughts on the proposed solution? -Matt [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Mappings vs. Custom Tag Paths
ALL, What is the difference between Mappings and Custom Tag Paths.They seem to be the same thing. Thanks, -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Mappings vs. Custom Tag Paths
Anyone know the answer the this trivia question? Anyone? Anyone? Troy Simpson wrote: ALL, What is the difference between Mappings and Custom Tag Paths.They seem to be the same thing. Thanks, -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Mappings vs. Custom Tag Paths
What is the difference between Mappings and Custom Tag Paths. They seem to be the same thing. Mappings are used by CFINCLUDE and CFMODULE. Custom tag paths allow you to reference foo.cfm using CF_FOO. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Mappings vs. Custom Tag Paths
Beuller? ;) A mapping is analogous to a symbolic link--it lets you tell CF to use a directory located somewhere on your hard drive as a directory in your web server's hierarchy, even if the directory isn't actually located in the hierarchy.It contains pages that can be viewed by the user (web visitor). A Custom Tag Path is just a location where CF will look whenever you invoke a custom tag.It's usually not part of the web server's hierarchy, and can't be viewed by the user. - Jeff On 24 Feb 2004 at 18:03, Troy Simpson wrote: Anyone know the answer the this trivia question? Anyone? Anyone? Troy Simpson wrote: ALL, What is the difference between Mappings and Custom Tag Paths.They seem to be the same thing. Thanks, -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Mappings vs. Custom Tag Paths
I'm not much of a mappings user, but I'm quite sure that web visitors can't view tempaltes in a mapping.They can if you create a mapping in Jrun (/WEB-INF/jrun-web.xml), but not in CF.I believe custom tag paths are also used for CFC invocation, but again, I'm not sure. Cheers, barneyb -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 24, 2004 4:04 PM To: CF-Talk Subject: Re: Mappings vs. Custom Tag Paths Beuller? ;) A mapping is analogous to a symbolic link--it lets you tell CF to use a directory located somewhere on your hard drive as a directory in your web server's hierarchy, even if the directory isn't actually located in the hierarchy.It contains pages that can be viewed by the user (web visitor). A Custom Tag Path is just a location where CF will look whenever you invoke a custom tag.It's usually not part of the web server's hierarchy, and can't be viewed by the user. - Jeff On 24 Feb 2004 at 18:03, Troy Simpson wrote: Anyone know the answer the this trivia question? Anyone? Anyone? Troy Simpson wrote: ALL, What is the difference between Mappings and Custom Tag Paths.They seem to be the same thing. Thanks, -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Mappings vs. Custom Tag Paths
A mapping is analogous to a symbolic link--it lets you tell CF to use a directory located somewhere on your hard drive as a directory in your web server's hierarchy, even if the directory isn't actually located in the hierarchy.It contains pages that can be viewed by the user (web visitor). CF mappings do not make files accessible through the web server. Only web server mappings do this. There is no correlation between the two. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Mappings vs. Custom Tag Paths
Not to view templates as in their code, but post-process.I.e., if there's a plain HTML file in a mapped directory, it would be viewable by a visitor. I don't know about custom tag paths for CFC invocation--might be an interesting experiment. - Jeff On 24 Feb 2004 at 16:11, Barney Boisvert wrote: I'm not much of a mappings user, but I'm quite sure that web visitors can't view tempaltes in a mapping.They can if you create a mapping in Jrun (/WEB-INF/jrun-web.xml), but not in CF.I believe custom tag paths are also used for CFC invocation, but again, I'm not sure. Cheers, barneyb -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 24, 2004 4:04 PM To: CF-Talk Subject: Re: Mappings vs. Custom Tag Paths Beuller? ;) A mapping is analogous to a symbolic link--it lets you tell CF to use a directory located somewhere on your hard drive as a directory in your web server's hierarchy, even if the directory isn't actually located in the hierarchy.It contains pages that can be viewed by the user (web visitor). A Custom Tag Path is just a location where CF will look whenever you invoke a custom tag.It's usually not part of the web server's hierarchy, and can't be viewed by the user. - Jeff On 24 Feb 2004 at 18:03, Troy Simpson wrote: Anyone know the answer the this trivia question? Anyone? Anyone? Troy Simpson wrote: ALL, What is the difference between Mappings and Custom Tag Paths.They seem to be the same thing. Thanks, -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Mappings vs. Custom Tag Paths
Yep. Just pulled my head out of a session with a colleague regarding development mappings (Studio/HomeSite), and brought it over here.Too many mappings. - Jeff On 24 Feb 2004 at 19:24, Dave Watts wrote: A mapping is analogous to a symbolic link--it lets you tell CF to use a directory located somewhere on your hard drive as a directory in your web server's hierarchy, even if the directory isn't actually located in the hierarchy.It contains pages that can be viewed by the user (web visitor). CF mappings do not make files accessible through the web server. Only web server mappings do this. There is no correlation between the two. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Mappings vs. Custom Tag Paths
That might explain one of my earlier post some time ago.Here is my earlier post with Subject: ColdFusion Administrator Not secured!!It seems to be a common problem. --- I have installed ColdFusion MX with the bundled webserver and restricted the bundled webserver to run only on 127.0.0.1.I only want to administer the ColdFusionAS from the console. Next I installed Apache2 and configured it to work with ColdFusion. Everything works fine except that I am able to get to the ColdFusion Administrator pages with the Apache website. When I type in the following URL: http://www.company.com/CFIDE/administrator/ I get HTTP 404 - File not found. But when I type in the following URL with the index.cfm template on the end: http://www.company.com/CFIDE/administrator/index.cfm I am given the ColdFusion Administrator Login page with no graphic images.After longing into the ColdFusion Administrator I am given the Administrator pages with no graphic images. I suspect that this might have something to do with the Mappings in the ColdFusion Administrator.I am unable to delete the Logical Path /CFIDE in the Mappings section in order to test this out. Anyone have any ideas on how to fix this? -- Thanks, Troy [EMAIL PROTECTED] wrote: Beuller? ;) A mapping is analogous to a symbolic link--it lets you tell CF to use a directory located somewhere on your hard drive as a directory in your web server's hierarchy, even if the directory isn't actually located in the hierarchy.It contains pages that can be viewed by the user (web visitor). A Custom Tag Path is just a location where CF will look whenever you invoke a custom tag.It's usually not part of the web server's hierarchy, and can't be viewed by the user. - Jeff On 24 Feb 2004 at 18:03, Troy Simpson wrote: Anyone know the answer the this trivia question? Anyone? Anyone? Troy Simpson wrote: ALL, What is the difference between Mappings and Custom Tag Paths.They seem to be the same thing. Thanks, -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Mappings vs. Custom Tag Paths
That might explain one of my earlier post some time ago. Here is my earlier post with Subject: ColdFusion Administrator Not secured!!It seems to be a common problem. ... But when I type in the following URL with the index.cfm template on the end: http://www.company.com/CFIDE/administrator/index.cfm I am given the ColdFusion Administrator Login page with no graphic images.After longing into the ColdFusion Administrator I am given the Administrator pages with no graphic images. I don't think it has anything to do with mappings. Mappings don't allow you to access CF pages via a browser, they only allow you to do so from within your code. I think, instead, that there's something embedded within CF that automatically treats that URL pattern a certain way, even if the URL pattern doesn't actually correspond to a directory accessible through the web server. There are ways to defeat this, which I'm too busy to go into in depth now; I'd be happy to do this later, however. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Mappings vs. Custom Tag Paths
I believe custom tag paths are also used for CFC invocation, but again, I'm not sure. Yes, they are. I use them for CFC invocation whenever I am on a shared box Massimo Foti http://www.massimocorner.com Co-Author of Dreamweaver MX 2004 Magic: http://www.dwmagic.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Programatically Adding Custom Tag Paths
Hi all, Firstly please excuse any spelling mistakes - it's nigh-on freezing here in the UK, so having ridden to work my hands are icicles. Anyway, does anyone know of a way to programmatically add/remove/modify custom tag paths. What I'm interested in doing is creating a Using() function to work in the same lines as the C#'s and Java's keyword of the same name. Ideally I'd like to update the custom tag paths for the duration of a request and no longer. Anyone got any ideas? -- Oliver Tupman Key Systems Geotechnical [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Programatically Adding Custom Tag Paths
Oliver Ideally I'd like to update the custom tag paths for the duration of a request and no longer. Anyone got any ideas? Nasty hack, but but you could do something with cfmodule template=... ? Or use CFCs or UDFs? Nick [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:Programatically Adding Custom Tag Paths
use cfmodule template=#somepath#my_tag.cfm or cfmodule name=#someplace#my_tag Where #somepath# is a path to the tag, same as the template attribute in a cfinclude. If you use the name attribute then #someplace# is a dot delimited location relative to the custom tags directory. IMO, using cfmodule is far preferable to cf_... since it gives full control over which version of a particular tag you're running. Aside from having to change all your cf_... tags (Studio regex search and replace...) the only thing you'll need to watch is if any of your custom tags already use name or template as attributes. Oh, and if you nest tags in a single template then you'll have to ensure your end tags are correct, which may require a bit of tweaking If you really want to change the actual Custom tags path then you can do it using cfregistry (for CF5 or earlier - not sure about cfmx), but you probably don't want to go writing and refreshing the registry with every request... HTH Bert [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Programatically Adding Custom Tag Paths
Nasty hack, but but you could do something with cfmodule template=... ? Or use CFCs or UDFs? Nick I can't do cfmodule (I think...) because the reason I wish to do this is to include CFCs. For example a CFC component might live here: oliver.fred.project.People.Present Now I have a function New() that is simply a shortened version of CreateComponent() that takes one argument: the component name. I'd like to create a function called Using() that - for the duration of the request - appends whatever is passed to it to the custom tag path. So instead of doing this: New(oliver.fred.project.People.Present); New(oliver.fred.project.Car.Somethingelse); ... and so on I could do this: Using(oliver.fred.project); New(People.Present); New(Car.Somethingelse); One way is to simply define a string that has oliver.fred.project and do : New(#defStr#.People.Present); But I'm lazy. Nick de Voil wrote: -- Oliver Tupman Key Systems Geotechnical [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Defining Custom tag Paths in Code
If I understand your question correctly, that is, to let all applications under one server access the same custom tag / module, then, use DOT NOTATION to call the module is the way to go, for instance, cfmodule name=UtilityComponents.utility Attributes.A=1 Attributes.B='abc' ... (where UtilityComponents is a directory under CustomTags directory of your CF|CFMX installation). Li, Chunshen (Don) Baltimore, MD http://68.32.61.40/datadata/dataman.cfm ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Defining Custom tag Paths in Code
Can it be done? Shared server model - trying to avoid sandbox/security issues with multiple custom path mappings - can I define the custom tag paths in code? Anybody know the syntax off hand? Cheers Sean ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Defining Custom tag Paths in Code
Shared server model Any specific reason for avoiding cfmodule or, with CF MX, cfimport? Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Defining Custom tag Paths in Code
Well in CFMX you can use cfimport to map a folder of tags onto a prefix, e.g. stringlib:striphtml ... . The downside is that it has to be used at the top of each file in which you want to use custom tags. I think it's still worth it though -- you get used to the lines of cfimport tags. And it encourages you to be a bit more organised about your custom tags. Another thing you can do is put the path to your tag folder in a variable e.g. ../../../../customtags/ then put that in the cfmodule. Even better is to note that generally all servers (even shared) will have the / mapping set up. You can use that to set a variable for the path that will work from any location within your site - you just need to know the name of the folder your site lives in (which you can get from gettemplatepath() ). Matthew Walker Electric Sheep Web http://www.electricsheep.co.nz/ - Original Message - From: Sean [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, July 04, 2003 7:41 PM Subject: Defining Custom tag Paths in Code Can it be done? Shared server model - trying to avoid sandbox/security issues with multiple custom path mappings - can I define the custom tag paths in code? Anybody know the syntax off hand? Cheers Sean ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Defining Custom tag Paths in Code
You can also use a UDF to get relative paths to an absolute file path to call custom tags... Check out the Tapestry API in my sig or the getRelative() function from cflig.org http://www.cflib.org/udf.cfm?ID=837 It's the same function... In Tapestry relative paths to these locations are cached in the application scope for efficiency (since they're not going to change... ever really), iirc the version of this function in the Tapestry API opensource project (in my sig) and on cflib.org uses the request scope which is a bit less efficient, but is done that way to avoid locking issues on CF5... If you're on cfmx you can just replace request with application and all should be well. :) I'd create an additional UDF to get a relative path to your custom tags directory like this: cfscript function tag(tagname) { return request.tapi.getRelative(request.customtagsdir / tagname); } /cfscript Then calling a custom tag will look like this: cfmodule template=#request.tapi.tag('mytag')# blah blah... If you put the tapi call in the application.cfm then you'll have this available to you in every template in your application, so unlike cfimport you won't have to keep initializing it in each template where you need it. This is how I've avoided using cfserver mappings or cfimport in my own applications and it's worked well for me thus far. hth s. isaac dealey972-490-6624 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to tapestry api is opensource http://www.turnkey.to/tapi certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 Well in CFMX you can use cfimport to map a folder of tags onto a prefix, e.g. stringlib:striphtml ... . The downside is that it has to be used at the top of each file in which you want to use custom tags. I think it's still worth it though -- you get used to the lines of cfimport tags. And it encourages you to be a bit more organised about your custom tags. Another thing you can do is put the path to your tag folder in a variable e.g. ../../../../customtags/ then put that in the cfmodule. Even better is to note that generally all servers (even shared) will have the / mapping set up. You can use that to set a variable for the path that will work from any location within your site - you just need to know the name of the folder your site lives in (which you can get from gettemplatepath() ). Matthew Walker Electric Sheep Web http://www.electricsheep.co.nz/ - Original Message - From: Sean [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, July 04, 2003 7:41 PM Subject: Defining Custom tag Paths in Code Can it be done? Shared server model - trying to avoid sandbox/security issues with multiple custom path mappings - can I define the custom tag paths in code? Anybody know the syntax off hand? Cheers Sean ~~ ~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index. cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/uns ubscribe.cfm?user=633.558.4 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4