I am trying to set up some local mappings (CF9) and it doiesn't seem to
recognize it. I have this as part of several variables that are set before
the 1st function in my application.cfc...
cfset this.mappings[ /cup ] = #application.cuproot#/cup
What ended up happening with this?
--
Adam
To: cf-talk
Subject: RE: per application settings
I think we are focusing on the actual image too much here...I am talking about
the path to the image. So this is before anything gets served...
Eric
-Original Message-
From: Phillip Duba [mailto:phild...@gmail.com]
Sent: Tuesday, November
Eric, just accept that you need to add an Apache alias and move on. It'll
take you 3 minutes to do this. Several hours of collective time have been
spent here explaining this, and it's getting silly now. If the goal has
become trying to figure out why your CF Admin mappings are acting in a
On Tue, Nov 26, 2013 at 6:15 PM, Eric Roberts wrote:
Thank you Cam...now this .png is getting called from a cfm page
(header.cfm) So wouldn't the application.cfc be applied?
In this scenario the browser makes two requests. 1) to a cfm page and 2) to
a png file.
Application.cfc is only
Subject: Re: per application settings
So Eric, unless you have modified some tomcat settings or IIS or
Apache settings, then what you are saying is not true.
That is, basically, the bottom line. It could be either of those, but we
can't move the answer forward unless we identify which
On top of what Dave has stated, the very easy thing to remember is that we
have tow paths.
1) Relative paths (used for url work)
2) Absolute paths, used for file system and loading basic CRUD on files.
Anytime you setup any form of mapping, it is only ever going to be used by
CF tags that need
So Eric, unless you have modified some tomcat settings or IIS or Apache
settings, then what you are saying is not true.
That is, basically, the bottom line. It could be either of those, but we
can't move the answer forward unless we identify which.
If it *is* actually behaving the way you
I am trying to set up some local mappings (CF9) and it doiesn't seem to
recognize it. I have this as part of several variables that are set before
the 1st function in my application.cfc...
cfset this.mappings[ /cup ] = #application.cuproot#/cup
For instance...when I try to access an image in
Eric,
I don't think ColdFusion mappings are involved when accessing files
other than ColdFusion templates and components (.cfm and .cfc). If you
look at the source of your web page in your browser, you'll probably see
that the URLs are still /cup/images/image.png. The web server then
Since your image files are being served by the web server, not by Coldfusion,
you will have to create a new variable to hold your image directory prefix, or
you will have to create an Alias for your web server to honor. For Apache, in
your VirtualHost directive for the site you would specify:
So why does the mapping in CFADmin work if I set that up? That is all I am
doing, just at an application level...that doesn't make sense... When CF
renders the page, it should render the mapping, just like it would render a
variable.
Eric
On Tue, Nov 26, 2013 at 12:54 PM, Jon Clausen
I am trying to set up some local mappings (CF9) and it doiesn't seem to
recognize it. I have this as part of several variables that are set before
the 1st function in my application.cfc...
cfset this.mappings[ /cup ] = #application.cuproot#/cup
For instance...when I try to access an image in
On Nov 26, 2013, at 2:11 PM, Eric Roberts ow...@threeravensconsulting.com
wrote:
So why does the mapping in CFADmin work if I set that up? That is all I am
doing, just at an application level...that doesn't make sense... When CF
renders the page, it should render the mapping, just like
I know that...I was referring to what is rendered after the fact.When i
click on image information, the image info should display the url with /er/
in it...not the other as that is part of the path from the root.
Eric
On Tue, Nov 26, 2013 at 1:13 PM, Adam Cameron dac.c...@gmail.com wrote:
Yes...cf does evaluate the img tag...as it has a mappiung in it...just as
it would evaluate it if there was a variable in the path to the image. So
yes...CF does evaluate html tags...whenever ther is a / in from of a
path...CF is supposed to recognize that as a mapping. If i sewt it up the
cf
Are you developing on the standalone CF server? If so, that may be why youre
getting that behavior when you specify it in the CF Admin, but not at the
application level. You may get that behavior if youre serving everything
through the self-contained server, but that behavior wont carry
I know that...I was referring to what is rendered after the fact.When i
click on image information, the image info should display the url with /er/
in it...not the other as that is part of the path from the root.
NO, you don't quite seem to get it actually. When I said CF has got nothing to
do
no...it's not the standalone server. It's going through Apache. This is
exactly what mappings are used for...just as they are used the same way if
you specify this in Apache. If it works when i set up up in cf
admin...then the per application setting should work the same way but only
be
Adam...if that is true, they why does it pick it up when I set the mapping
in CF Admin? I am thinking it is you that isn't getting it... If it works
with a mapping in CF Admin, then it should behave the same with a per
application mapping...that was kinda the point in creating them.
Eric
On
Yes...cf does evaluate the img tag...
No. It absolutely does not. You are mistaken.
I'm not vaguely speculating as to what your problem might be: I know what your
problem is, and I know how it is you're mistaken about things. It's a fairly
common misconception people have. And both John and I
again...if it works with a cf mapping in cf admin...how is it not parsing
the img tag?
Eric
On Tue, Nov 26, 2013 at 1:36 PM, Adam Cameron dac.c...@gmail.com wrote:
Yes...cf does evaluate the img tag...
No. It absolutely does not. You are mistaken.
I'm not vaguely speculating as to what
no...it's not the standalone server. It's going through Apache. This is
exactly what mappings are used for...
No they're not.
just as they are used the same way if
you specify this in Apache. If it works when i set up up in cf
admin...then the per application setting should work the same
Eric,
It might be coincidence only. We had something similar with a directory
mapping that caused one thing on one domain but when another domain/app had
a similar directory weird things happened until we removed the CF mapping.
Adam and John are right, CF mappings as defined through the
again...if it works with a cf mapping in cf admin...how is it not parsing
the img tag?
There are two possibilities here:
1) you have a very special unique version of CF in which a CF mapping setting
in CFAdmin will magically change a URL in an image tag.
2) you're mistaken.
Those are the only
Adam...as i stated several times...when I do the cf mapping in cf
admin...it works just fine...so I have already done your experiment...
Eric
On Tue, Nov 26, 2013 at 1:44 PM, Phillip Duba phild...@gmail.com wrote:
Eric,
It might be coincidence only. We had something similar with a
Philip...it is in a .cfm file that handles the header. in this specific
instance, it is calling up a logo image in the header. If this was in an
html file, then they would be correct...but in a cfm file...everything is
parsed. The point behind having mappings is so that in the code, you are
OK,
Just ran a test and I cant duplicate your server mapping functionality with a
standard Apache/CF Connector server setup but I *can* duplicate that
functionality when I tell Apache to serve an image MIME type (e.g. - .jpg,
.png) through Coldfusion. Is this how your setup is configured?
John...it's not serving the image...but it renders the path in the src
attribute when it renders from cfml to html and JavaScript...the mapping
gets converted to the url that the browser sees and uses to get the
image...hence the reson the final result from /cup/images/image.png becomes
Eric,
To clear up any questions about how the URL is being built/coded, can
you post the content of your .cfm file that handles the header.
-Carl V.
On 11/26/2013 11:52 AM, Eric Roberts wrote:
Philip...it is in a .cfm file that handles the header. in this specific
instance, it is calling
OK,
Just ran a test and I cant duplicate your server mapping
functionality with a standard Apache/CF Connector server setup but I
*can* duplicate that functionality when I tell Apache to serve an
image MIME type (e.g. - .jpg, .png) through Coldfusion. Is this how
your setup is
Ok, you've given us more information in this then in the original. Is it
just something like this inside of header.cfm:
htmlheadtitleMy app/title/headbodyheaderimg
src=/cup/images/image.png/
..
While it is true that file is parsed by ColdFusion it DOES NOT evaluate
every tag inside of the
On Tue, Nov 26, 2013 at 2:52 PM, Eric Roberts
ow...@threeravensconsulting.com wrote:
Philip...it is in a .cfm file that handles the header. in this specific
instance, it is calling up a logo image in the header. If this was in an
html file, then they would be correct...but in a cfm
Matt...where did I say I was executing a non-cfm file?
On Tue, Nov 26, 2013 at 2:04 PM, Matt Quackenbush quackfu...@gmail.comwrote:
On Tue, Nov 26, 2013 at 2:52 PM, Eric Roberts
ow...@threeravensconsulting.com wrote:
Philip...it is in a .cfm file that handles the header. in this
Matt...please read what you quoted and that should address your statement
about non-cfm files...
Philip...it is in a .cfm file that handles the header. in this specific
instance, it is calling up a logo image in the header. If this was in an
html file, then they would be correct...but in a
I don't know that you did and I did not say that you did. But you
repeatedly stated that CF parses html, and that is 100% WRONG. CF only
parses CFML/CFScript.
On Tue, Nov 26, 2013 at 3:07 PM, Eric Roberts
ow...@threeravensconsulting.com wrote:
Matt...where did I say I was executing a
Philip...if I go ijnto cf admin and set up /cup in mappings...it works as
expected. As a per application mapping...it is not working as expected.
here is the surrounding code in the header file...
cfform action=#ATTRIBUTES.FORM_ACTION# method=post
name=sds_login_form
table
Correct. And you should read what I wrote. I addressed your words, exactly.
On Tue, Nov 26, 2013 at 3:09 PM, Eric Roberts
ow...@threeravensconsulting.com wrote:
Matt...please read what you quoted and that should address your statement
about non-cfm files...
Philip...it is in a .cfm
it parses html in a cfm file...it parses it to see if there are any cf
elements in it that it needs to render...like variables and mappings...
Eric
On Tue, Nov 26, 2013 at 2:10 PM, Matt Quackenbush quackfu...@gmail.comwrote:
I don't know that you did and I did not say that you did. But you
so back to the question...why are the per application settings not working?
Eric
On Tue, Nov 26, 2013 at 2:12 PM, Matt Quackenbush quackfu...@gmail.comwrote:
Correct. And you should read what I wrote. I addressed your words, exactly.
On Tue, Nov 26, 2013 at 3:09 PM, Eric Roberts
ow
No, it doesn't. You're flat out wrong. CF does not, has not, and never will
parse HTML.
It only looks for CFML code to parse, and handles it accordingly.
Ex.
img src=/foo/bar/image.png / !---// never parsed by CF ---
img src=/#foo#/bar/image.png / !---// never parsed by CF ---
cfoutput
The answer is still the same: What you are expecting will never be
experienced with CF.
On Tue, Nov 26, 2013 at 3:15 PM, Eric Roberts
ow...@threeravensconsulting.com wrote:
so back to the question...why are the per application settings not working?
Eric
On Nov 26, 2013, at 3:15 PM, Eric Roberts ow...@threeravensconsulting.com
wrote:
so back to the question...why are the per application settings not working?
Eric
I suspect the answer lies within the unique configuration of your development
server.
No matter what variables you have
I swear this guy is a troll, nobody is that dense.
but incase he is:
CFMappings are used ONLY FOR things such as CFINCLUDE. They are never used for
img src=/some/place/imagename.png To get a mapping for image or other
HTML urls you have to use the web server (IIS OR Apache) Alias
Matt...where did I say I was executing a non-cfm file?
When you said this:
For instance...when I try to access an image in a directory (the path from
the root is /cup/images/image.png), I call img src=/cup/images/image.png
/,
Say you have this in your eric.cfm file:
cfset msg = Hi Eric
Adam...as i stated several times...when I do the cf mapping in cf
admin...it works just fine...so I have already done your experiment...
Please... do it again, and perform only the steps I listed.
Then you will see you're mistaken, and we can move on.
--
Adam
it parses html in a cfm file...it parses it to see if there are any cf
elements in it that it needs to render...like variables and mappings...
No it doesn't. CF only parses the CFML part of any file. It completely ignores
anything else. This is easy to see if you decompile the compiled class
That's a good explanation / demonstration Matt.
--
Adam
No, it doesn't. You're flat out wrong. CF does not, has not, and never will
parse HTML.
It only looks for CFML code to parse, and handles it accordingly.
Ex.
img src=/foo/bar/image.png / !---// never parsed by CF ---
img
+infinity
On Tue, Nov 26, 2013 at 3:28 PM, Adam Cameron dac.c...@gmail.com wrote:
it parses html in a cfm file...it parses it to see if there are any cf
elements in it that it needs to render...like variables and mappings...
No it doesn't. CF only parses the CFML part of any file. It
Then why does it work when i set up the mapping in cfadmin? No one seems
to want to answer that...
Eric
On Tue, Nov 26, 2013 at 2:21 PM, Wil Genovese jugg...@trunkful.com wrote:
I swear this guy is a troll, nobody is that dense.
but incase he is:
CFMappings are used ONLY FOR things
The fact that it works in this case is not the issue. CF mappings whether
defined in the application and/or in the administrator operate the same
way. You need to define for us, since we're not sitting their in front of
your terminal, the mappings, mapping path and full path, as they appear in
CF
That has been answered, too.
From Jon...
OK,
Just ran a test and I cant duplicate your server mapping functionality
with a standard Apache/CF Connector server setup but I *can* duplicate that
functionality when I tell Apache to serve an image MIME type (e.g. - .jpg,
.png) through
this is the value of cuproot: /usr/test/softfac_test/www/htdocs/er so
when it gets put intot he mapping setting it's
/usr/test/softfac_test/www/htdocs/er/cup
In the cfadmin the path is /usr/test/softfac_test/www/htdocs/er/cup
Eric
On Tue, Nov 26, 2013 at 2:40 PM, Phillip Duba
Saying that I have some special configuration is not an answer...there is
nothing special about the setup of the server. He was confused with
something about serving up mime types...which had nothing to do with the
question.
On Tue, Nov 26, 2013 at 2:43 PM, Matt Quackenbush
Ok, do me a favor then, delete the mapping from your administrator AND your
per-application mapping,
Phil
On Tue, Nov 26, 2013 at 3:44 PM, Eric Roberts
ow...@threeravensconsulting.com wrote:
this is the value of cuproot: /usr/test/softfac_test/www/htdocs/er so
when it gets put intot he
when i do that...the image is broken. If I add the per app setting it is
broken. if I add the mapping in cf admin it works...
On Tue, Nov 26, 2013 at 2:47 PM, Phillip Duba phild...@gmail.com wrote:
Ok, do me a favor then, delete the mapping from your administrator AND your
per-application
What's the new rendered path from your generated HTML?
Phil
On Tue, Nov 26, 2013 at 3:50 PM, Eric Roberts
ow...@threeravensconsulting.com wrote:
when i do that...the image is broken. If I add the per app setting it is
broken. if I add the mapping in cf admin it works...
On Tue, Nov
Then why does it work when i set up the mapping in cfadmin? No one seems
to want to answer that...
I suspect it's because you're mistaken about that too.
Do you perform those steps I asked you to? I mean again, now, this evening,
after I asked you to. And after you said I don't have to
You also haven't answered my question on how the header CFM is being loaded
into the application's page. Is it by CFINCLUDE, CFHTTP, part of a function
call, etc.?
Phil
On Tue, Nov 26, 2013 at 3:50 PM, Eric Roberts
ow...@threeravensconsulting.com wrote:
when i do that...the image is
when i do that...the image is broken. If I add the per app setting it is
broken. if I add the mapping in cf admin it works...
And did you go an TEST THAT just now, or are you running from memory or
describing what you recall from past experience?
--
Adam
http://www.xxx.com/cup/images/image.png
when it is working it is http://www.xxx.com/er/cup/images/image.png
On Tue, Nov 26, 2013 at 2:52 PM, Phillip Duba phild...@gmail.com wrote:
What's the new rendered path from your generated HTML?
Phil
On Tue, Nov 26, 2013 at 3:50 PM, Eric Roberts
I did...it is included in the index page...
On Tue, Nov 26, 2013 at 2:53 PM, Phillip Duba phild...@gmail.com wrote:
You also haven't answered my question on how the header CFM is being loaded
into the application's page. Is it by CFINCLUDE, CFHTTP, part of a function
call, etc.?
Phil
It just occurs to me... do you have mod_rewrite running, and do you have any
rewrite rules in play?
--
Adam
~|
Order the Adobe Coldfusion Anthology now!
And that index page is at www.xxx.com/er/cup/index.cfm, correct?
On Tue, Nov 26, 2013 at 3:54 PM, Eric Roberts
ow...@threeravensconsulting.com wrote:
I did...it is included in the index page...
On Tue, Nov 26, 2013 at 2:53 PM, Phillip Duba phild...@gmail.com wrote:
You also haven't
Thanks. Have you reset the application scope as we've asked you to add and
remove the per-app mappings?
Phil
On Nov 26, 2013 3:55 PM, Eric Roberts ow...@threeravensconsulting.com
wrote:
http://www.xxx.com/cup/images/image.png
when it is working it is
Yes on both Philip. No...no mod rewrite Adam.
On Tue, Nov 26, 2013 at 3:19 PM, Phillip Duba phild...@gmail.com wrote:
Thanks. Have you reset the application scope as we've asked you to add and
remove the per-app mappings?
Phil
On Nov 26, 2013 3:55 PM, Eric Roberts
On Tue, Nov 26, 2013 at 3:23 PM, Eric wrote:
img src=/cup/images/image.png /
Here's what MAY be happening here. In the case of a CFAdmin mapping:
1) Apache gets request for /cup/images/image.png
2) Apache says no such file! what say you JRun (CF9 right?)
3) JRun says: Hey! This aint no CFM
Thank you Cam...now this .png is getting called from a cfm page (header.cfm
) So wouldn't the application.cfc be applied?
-Original Message-
From: Cameron Childress [mailto:camer...@gmail.com]
Sent: Tuesday, November 26, 2013 4:48 PM
To: cf-talk
Subject: Re: per application settings
...now this .png is getting called from a cfm page (header.cfm
) So wouldn't the application.cfc be applied?
-Original Message-
From: Cameron Childress [mailto:camer...@gmail.com]
Sent: Tuesday, November 26, 2013 4:48 PM
To: cf-talk
Subject: Re: per application settings
On Tue
application settings
No it wouldn't. Its being served and called through the browser, that's
why you can view it directly. The scenario Cameron describes is very close
to what happened to me 2 weeks ago with a mapping,
Phil
On Nov 26, 2013 6:15 PM, Eric Roberts ow...@threeravensconsulting.com
it parses html in a cfm file...it parses it to see if there are any cf
elements in it that it needs to render...like variables and mappings...
This is a long thread, and I'm kind of woozy so I didn't read every
response, but just in case this hasn't been fully addressed: this is
not entirely
70 matches
Mail list logo