CFIMPORT lets you use JSP taglibs in your CF code.  A very nice feature,
especially in hybrid environments, but not quite what I'm looking for.  I'm
not really looking for a solution (there isn't one aside from hacking the CF
compiler), but more looking to see if anyone else has desired the same
thing, with the hope that MM might incorporate such a thing in a future
updater.

It seems it would be an amazingly trivial thing to incorporate, assuming
that CF variables are accessible from the Java size of things in a
consistent (and documented) manner.  Haven't looked at the .java files much,
so I don't know how they all work.  Perhaps Sean or Christian could comment?

barneyb

> -----Original Message-----
> From: Matthew Walker [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 21, 2003 2:07 PM
> To: CF-Talk
> Subject: Re: Java scriptlets on CFMX
>
>
> Have you looked at cfimport? (which is not exactly what you're looking for
> but might help)
>
>
> Matthew Walker
> Electric Sheep Web
> http://www.electricsheep.co.nz/
>
> ----- Original Message -----
> From: "Barney Boisvert" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Saturday, February 22, 2003 9:58 AM
> Subject: Java scriptlets on CFMX
>
>
> > Anyone know if there is a way to embed Java scriptlets into CFML pages
> like
> > you would in JSP pages?
> >
> > The reason I ask is that since CFMX came out, I've been generating a lot
> of
> > code that uses Java, especially the java.util package.  So I
> have snips of
> > code like this all over my apps:
> >
> > <cfscript>
> >    missing = createObject("java", "java.util.ArrayList");
> >    missing.init(request.neededfilenames.clone());
> >    missing.removeAll(request.foundfilenames);
> >    createObject("java", "java.util.Collections").sort(missing);
> > </cfscript>
> >
> > Rather than something like this, which is far easier to read:
> >
> > <%
> >    missing = new java.util.ArrayList(request.neededfilenames.clone());
> >    missing.removeAll(request.foundfilenames);
> >    java.util.Collections.sort(missing);
> > %>
> >
> > Yeah, yeah, I know, move to JSP so I don't have to worry about
> it.  But CF
> > is so damn nice, and that's what my apps are all written in already, so
> that
> > would be a pain (not to mention a decision that's not mine to make
> anyway).
> > Just throwing that out there, since I know there are MacroMedians on the
> > list.
> >
> > cheers,
> > barneyb
> >
> > ---
> > Barney Boisvert, Senior Development Engineer
> > AudienceCentral (formerly PIER System, Inc.)
> > [EMAIL PROTECTED]
> > voice : 360.671.8708 x12
> > fax   : 360.647.5351
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.455 / Virus Database: 255 - Release Date: 2/13/2003
> >
> >
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to