Yash, tried to send a PM, your box is full

jag5311

Perch
I was trying to send you a PM about this, but your box was full, and you don't accept emails, so here we are. BTW- I noticed the technical forum is gone. Anyways, here is my message



Hi Yash,

I know we have had a few comments back and forth regarding the search engine issue, but I wanted to let you know I came across a solution I think would work for myself, and wanted to throw it by you.

The reason I want to throw it by you because it requires a small change to the web.xml file. It is actually recommended by Ben Forta but I want to show you what I am refering to:

This is taken from the help file of the Safe-URL file I am working with

While HurlParamsMX appears to work without any problems or configuration changes to the
web server upon which its run, CFMX requires a bit of extra handling in order to utilize
non-standard query strings.

For CF4.5/5, requires no access or changes to the web server.

For CFMX to parse non-standard query strings, follow this tip taken from Ben Forta's website:

"The solution is actually quite simple. Modify web.xml (it's in the web-inf directory under the
web root) to add the following servlet mapping:

<servlet-mapping>
<servlet-name>CfmServlet</servlet-name>
<url-pattern>*</url-pattern>
</servlet-mapping>".

Then just save the file, and restart ColdFusion."

Is that something you are able to do? I guess it only applies to MX.

I have no clue what it means but I thought if anyone did, it was probably you.

Thanks
Bryan
 
What's the URL for that article? I'll see what can be done

I hate being PMed so I've just left my mailbox full :)
 
The technical forum was merged with general. Mainly because people weren't reading the caption while posting.
 
Yash said:
What's the URL for that article? I'll see what can be done

I hate being PMed so I've just left my mailbox full :)

I am not quite sure what the actual URL for his quote is, but in the help file I have been reading, it shows it, and then I came across this URL that deals somewhat with the same issue

http://www.spike.org.uk/go/friendly-urls

hope that helps

Thanks
Bryan

p.s. If it is something you can do, don't make any changes till I officically know I can do this.
 
Ok, the owner of the script
http://www.websolete.com/exchange.cfm#hurlmx

Wrote this to me in an email

Ok Bryan,

There is definitely an issue here, the routine does not work as is, and the first order of business is to ask the host to make the change to the web.xml file. Its a low impact, low risk change and simply refers to the mapping that cf uses to determine whether its responsible for parsing a page (e.g. being able to use .kohl or .bry and have those pages be parsed as if they were ..cfm). I think you'll need to simply ask them to do that. This is far less invasive than your alternatives, ISAPI plugins and whatnot. You can even tell them that you want to simply name all your files .htm and have them parsed as if they were .cfm (use your best judgement).

For what its worth, the server does seem to meet all the other requirements of the routine. Below are the headers returned by the server:

So I guess if its possible, if you can add

Code:
		<servlet-mapping>
			<servlet-name>CfmServlet</servlet-name>
			<url-pattern>*</url-pattern>
		  </servlet-mapping>

to the web.xml file, then everything else will fall into place.

Is this possible?
 
Hi

Give me 4 or 5 days on this one, but we'll have this done.

If we do this now the settings would eventually change because we are beginning to shift many customers to new servers we have setup.
 
Yash said:
Hi

Give me 4 or 5 days on this one, but we'll have this done.

If we do this now the settings would eventually change because we are beginning to shift many customers to new servers we have setup.

Sounds good! Thanks Yash, I appreciate it

Bryan
 
Just to let you know, we have contacted Macromedia to see what the implications are regarding this setting
 
no problem. Hopefully they approve :) I checked my own web.xml file for my local testing on my computer, and it includes a long list of <servlet> tags. Here is an example:

Code:
 <servlet>
       	<servlet-name>FlashGateway</servlet-name>
       	<servlet-class>flashgateway.controller.GatewayServlet</servlet-class>
       	<display-name>Flash Gateway</display-name>
       	<description>Allows flash to connect to CFML and CFC templates.</description>
     </servlet>

     <servlet-mapping>
      	<servlet-name>FlashGateway</servlet-name>
       	<url-pattern>/flashservices</url-pattern>
     </servlet-mapping>

	<servlet>
        <servlet-name>CfmServlet</servlet-name>
        <display-name>CFML Template Processor</display-name>
        <description>Compiles and executes CFML pages and tags</description>
        <servlet-class>coldfusion.CfmServlet</servlet-class>
	</servlet>

    <servlet>
        <servlet-name>GraphServlet</servlet-name>
        <display-name>GraphServlet</display-name>
        <description>Serves up graph data</description>
        <servlet-class>coldfusion.graph.GraphServlet</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>GraphServlet</servlet-name>
        <url-pattern>/CFIDE/GraphData.cfm</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>CfmServlet</servlet-name>
        <url-pattern>*.cfm</url-pattern>
    </servlet-mapping>
    
    <servlet-mapping>
        <servlet-name>CfmServlet</servlet-name>
        <url-pattern>*.cfm/*</url-pattern>
    </servlet-mapping>
    
    <servlet-mapping>
        <servlet-name>CfmServlet</servlet-name>
        <url-pattern>*.cfml</url-pattern>
    </servlet-mapping>
    
    <servlet-mapping>
        <servlet-name>CfmServlet</servlet-name>
        <url-pattern>*.cfml/*</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>CFCServlet</servlet-name>
        <display-name>CFC Processor</display-name>
        <description>Compiles and executes CF web components</description>
        <servlet-class>coldfusion.xml.rpc.CFCServlet</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>CFCServlet</servlet-name>
        <url-pattern>*.cfc</url-pattern>
    </servlet-mapping>
    
    <servlet-mapping>
        <servlet-name>CFCServlet</servlet-name>
        <url-pattern>*.cfc/*</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>RDSServlet</servlet-name>
        <servlet-class>coldfusion.rds.RdsFrontEndServlet</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>RDSServlet</servlet-name>
        <url-pattern>/CFIDE/main/ide.cfm</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>CFCServlet</servlet-name>
        <url-pattern>*.jws</url-pattern>
    </servlet-mapping>

Like that one guy had said, its very minor and only requires a reboot, but I want you to be safe then sorry, so contacting macromedia is the right thing.
 
Hey, could I at least get a thumbs up, thumbs down, still in the process type of check? I know I posted a couple times, and they may have gotten over looked, but a small update would suffice.

Thanks
Bryan
 
Thanks Yash,

I just noticed that you responded, but I never receive an email so its been 4 days since I noticed you responded :) oops. Just curious, but does a few days mean a week, or does a few days mean a few days, because since your response to my post, its been a few days :) No rush, just wondering, thats all.
 
The cluster is setup. We are just waiting on PSOFT to setup our Windows servers. We were hoping they they would have done it on Monday but they didn't. Trying to get an ETA from them. Could take a few days.
 
Hey, whenever it happens, just keep me updated.

Thanks Yash
Bryan

Yash said:
The cluster is setup. We are just waiting on PSOFT to setup our Windows servers. We were hoping they they would have done it on Monday but they didn't. Trying to get an ETA from them. Could take a few days.
 
Back
Top