Another option might be to convert the URLS into variables using CF
like this:

<cfset sVars = ListToArray(CGI.PATH_INFO, "/")>
<cfset currentPosition = 1>
<cfloop condition="currentPosition lte ArrayLen(sVars)">
<cfset SetVariable("url.#sVars[currentPosition]#", sVars
[currentPosition + 1])>
<cfset currentPosition = currentPosition + 2>
</cfloop>

This way you don't have to worry about any configuration on Tomcat or
Apache.  It's all done using OpenBD.  Just pop that code into your
application.cfm, or wherever it might be applicable to you and your
off.

URLS will look like:  www.testapp.com/search.cfm/var1/value1/var2/value2

Query strings are dumped into variables called url.var1 and url.var2,
which can be used normally within OpenBD.

The beauty of this is that you should be able to switch between SEF
URL's and standard URL's without messing around with a lot of
configurations.

Just a thought,

Tanner

On Aug 11, 7:04 am, "Hugo Ahlenius" <[email protected]> wrote:
> Hi,
>
> I was just playing with the SearchEngineFriendlyURLFilter in web.xml (OpenBD
> 1.1) - but I can't seem to find much documentation for it (maybe time for a
> wiki page?) - I can't really figure out how query strings are parsed/handled
> by the filter, if at all.
>
> I am playing with it using tomcat on a windows machine. By using a URL such
> as:http://localhost:8080/index.cfm/mypath/myfile?var1=tmp1&var2=tmp2
>
> I get /mypath/myfile in CGIPATH_INFO, but no URL vars, and nothing in
> CGI.QUERY_STRING. index.cfm in the root gets executed.
>
> Cheers,
> Hugo
>
> --
> Hugo Ahlenius
> fraxinus (at-sign) oxel.nethttp://www.oxel.net

--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official site @ http://www.openbluedragon.org/

!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to