Hello folks,

Just thought I'd give you all a heads-up that I've integrated the
changes I added to the FUServlet when working on the Middlesex
Hospital project with Jeff Couglin.

I've also moved the project to http://fuservlet.cfopen.org since that
will allow the community to be a lot more active in pushing changes
through and getting people up and running. I'm a bit busy for all that
ya see ;-)

Anyhow, the significant change to the FU Servlet is that you can now
specify an additional initialization parameter in web.xml that allows
you to completely bypass the text file and SES redirection method.

Let's say your web.xml looks like this:

<!-- Insert this into web.xml -->
  <servlet>
    <servlet-name>FUServlet</servlet-name>
    <display-name>FriendlyUrlServlet</display-name>
    <description>Translates friendly URLs to objects</description>
    <servlet-class>FriendlyURLServlet</servlet-class>
    <!-- Use this parameter if you want all redirects to be managed by /go.cfm 
    or any other relative URL that you specify.
    -->
    <init-param>
        <param-name>redirectHandler</param-name>
        <param-value>/go.cfm</param-value>
    </init-param>
  </servlet>

  <servlet-mapping>
    <servlet-name>FUServlet</servlet-name>
    <url-pattern>/go/*</url-pattern>
    <is-default>false</is-default>
  </servlet-mapping>


The new parameter is called redirectHandler and in this case causes
every URL that starts with /go/ to be passed to /go.cfm.

In go.cfm all URL variables will still be available and an additional
variable called path will be  added. The value of url.path is the
equivalent of cgi.script_name for what the user sees in the address
bar of their browser.

So if you went to http://www.example.com/go/products/myproduct

The value of url.path would be /go/products/myproduct.

I'll try to get the documentation and other info added to the
documentation area on http://fuservlet.cfopen.org later today.

If anyone wants to help out with documentation or code maintenance
drop me a line off list.

Spike

-- 
--------------------------------------------
Stephen Milligan
Code poet for hire
http://www.spike.org.uk

Do you cfeclipse? http://cfeclipse.tigris.org

---
You are currently subscribed to farcry-dev as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to