Application.cfc is ignored for .lc/.lucee requests

While experimenting with 5.0.0.64-BETA, it appears that Application.cfc is
ignored for .lc/.lucee templates. Is this correct? I was under the
assumption that the two dialects would play nicely together…

WEB-INF/web.xml

<?xml version="1.0" encoding="UTF-8"?>


awesomeapp

index.cfm
index.cfml
index.lc
index.html
index.htm
index.jsp
default.html
default.htm
default.jsp



CFMLServlet
CFMLServlet
lucee.loader.servlet.CFMLServlet


CFMLServlet
.cfm
.cfc
/index.cfm/
/index.cfc/




LuceeServlet
LuceeServlet
lucee.loader.servlet.LuceeServlet


LuceeServlet
.lc
.lucee
/index.lc/
/index.lucee/




RestServlet
RestServlet
lucee.loader.servlet.RestServlet

index.lc

Lucee Webapp Lucee Dialect <:output>the time is #now()#
</body>

Application.cfc
component accessors=true output=false persistent=false {

public function onRequestStart() {
    writeoutput("onrequeststart");abort;
}

}

An Application.lucee/.lc should take care of that for you. There may be a
setting for .lucee/.lc to pick up Application.cfc settings but my
understanding is that it’s done this way to “sandbox” new Lucee features
while allowing CFML to remain compatible. This might be useful if you were
working on porting an app from CFML to Lucee, for example.

Warm regards,

MikeOn Thu, Sep 24, 2015 at 4:53 PM, Jesse Shaffer <@Jesse_Shaffer> wrote:

While experimenting with 5.0.0.64-BETA, it appears that Application.cfc is
ignored for .lc/.lucee templates. Is this correct? I was under the
assumption that the two dialects would play nicely together…

WEB-INF/web.xml

<?xml version="1.0" encoding="UTF-8"?>


awesomeapp

index.cfm
index.cfml
index.lc
index.html
index.htm
index.jsp
default.html
default.htm
default.jsp



CFMLServlet
CFMLServlet
lucee.loader.servlet.CFMLServlet


CFMLServlet
.cfm
.cfc
/index.cfm/
/index.cfc/




LuceeServlet
LuceeServlet
lucee.loader.servlet.LuceeServlet


LuceeServlet
.lc
.lucee
/index.lc/
/index.lucee/




RestServlet
RestServlet
lucee.loader.servlet.RestServlet

index.lc

Lucee Webapp Lucee Dialect <:output>the time is #now()#
</body>

Application.cfc
component accessors=true output=false persistent=false {

public function onRequestStart() {
    writeoutput("onrequeststart");abort;
}

}


See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your
ticket NOW - http://www.cfcamp.org/

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/508d2536-b555-4d0e-b456-749560f0eac1%40googlegroups.com
https://groups.google.com/d/msgid/lucee/508d2536-b555-4d0e-b456-749560f0eac1%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.