I would consider writing your tags in Java.  It's very easy to do in Java.

See the packages java.util.zip :
http://java.sun.com/j2se/1.3/docs/api/java/util/zip/package-summary.html

also see the AWT or swing classes for your image size tag.

Actually writing a CFX is quite simple...

import com.allaire.cfx.*;

public class MyCFX implements CustomTag {
        public void processRequest( Request request, Response response )
        throws Exception {

        String strName = request.getAttribute("NAME");
        response.write("Hello, " + strName);
        }
}

Writing a CFX is actually well documented in the CF Docs

______________________________________________
Pete Freitag ([EMAIL PROTECTED])
CFDEV.COM / NETDesign Inc.
ColdFusion Developer Resources
http://www.cfdev.com/

-----Original Message-----
From: Ryan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 26, 2000 2:17 PM
To: CF-Linux
Subject: linux custom tags

Has anyone found any good sources of custom tags that run on
linux? I need a tag that will create zip files, and one that
will give me the width and height of an image.

When I search for these tags on the allaire developer gallery,
I find a few that do zip + image stuff, but they make no mention
of what OS it runs on. I downloaded one and it was a DLL, so
I don't think that will work on linux.

It seems to me that Allaire/CF is pretty tied to Winblows
when all the tags on their site are so *assumed* to be for
Windows that they don't even list what OS its for.

So I started reading about CFX, what little is in the CF books
I have here, and it says they are written in C++, Delphi or
Java.

So how easy is it (is it even possible) to write a CFX tag
on linux? Can it be written in C? Perl?

I could probably write a simple custom tag in CF to make
a call to a shell script or something that then calls
zip and does the stuff I need. That seems like it might
be bit slow.

Thanks for any info.

Ryan

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to