Questions tagged [lucee]

Lucee is a light-weight dynamic scripting language for the JVM that enables the rapid development of simple to highly sophisticated web applications.

Lucee is a modern dynamic scripting language for the JVM that enables the rapid development of simple to highly sophisticated web applications.

The Lucee language supports multiple development paradigms, including object orientation with inheritance and interfaces, and functional constructs like higher-order functions, closures, map(), and reduce().

The Lucee application server includes built-in functionality, through tags and functions, to address many of the common requirements of web application development. These include session management, image manipulation, PDF creation, XML generation and processing, security, date manipulation, and more.

Lucee versions

Current Stable Version: 5.2.7.62 // Release Date: 4 May 2018

Previous Stable Version: 5.2.6.60 // Release Date: 15 Mar 2018

It is recommended to use the latest stable released version.

Features

Database access

Lucee has built-in support for the following databases:

  • DB2
  • Firebird
  • H2 Database Engine in Embedded and Server Mode
  • Hypersonic SQL Database
  • Microsoft SQL Server
  • MySQL
  • JDBC-ODBC Bridge
  • Sybase
  • Oracle
  • PostgreSQL

Lucee also supports any database for which a JDBC driver is available.

Web services

Lucee has built-in support for calling, and consuming data returned from, existing web services, along with the ability to easily configure and expose web services to be consumed. Lucee supports three types of web services:

ORM

Lucee has built-in support for the object relational mapping (ORM) framework Hibernate, facilitating Hibernate usage from Lucee code without complex and explicit configuration.

Caching

Lucee has built-in support for multiple caching systems, including Infinispan, Ehcache, and Memcached, and can be extended with additional systems.

Cache implementations can be configured within the Lucee server, then used within an application -- both explicitly and implicitly -- for the caching of database results, function call results, external HTTP request results, serialized session storage, and as a flexible backing store for an in-process RAM-based file-system abstraction.

Virtual filesystems

Lucee supports multiple virtual file systems -- built-in abstractions of various local and remote resources -- including zip, HTTP, FTP, S3, and RAM. These allow the Lucee server and developer to treat access to an abstracted resource in the same manner as a local file system.

Sample Lucee code

Lucee is derived from the ColdFusion Markup Language (CFML) and therefore has support for both the tag-based and script-based based versions of CFML:

Tag example

<cfset myVar = "Hello World">
<cfoutput>#myVar#</cfoutput>

Script example

myVar = "Hello World";
echo(myVar);

Both the above examples will assign the string "Hello World" as the value of the variable myVar, then output that value to the response buffer, typically for display in a web browser.

480 questions
-1
votes
1 answer

working but need to get that piece from mysql

I have the following code which is working as expected, I am editing my question again here This is the loop i have SELECT * FROM table1 SELECT * FROM table2 WHERE…
Jhing
  • 41
  • 4
-1
votes
1 answer

extract value from the url by using a regex

I have this string value var x = '/index.cfm?act=page1.showdata'; want to extract page1 if i had to use it as simple, i am use contains to find it and make it work, but i really want to use regex to find that value and put it into a variable, using…
Jan
  • 85
  • 7
-1
votes
1 answer

detecting a referer inside getHTTPRequestData and creating mutiple structs

ok, so my first quesion is, i can get headers value of referrer from it, but is it always avaliable even when we have notifications enabled, and secondly i am trying to use a member function to add two structs with keypair values to existing…
Jan
  • 85
  • 7
-1
votes
2 answers

i am trying to connec to paypal

I am trying to connect to the paypal but i have some questions with regards to the form data i need to pass, paypal expects it like this "purchase_units": [ { "amount": { "currency_code": "USD", "value": "100.00" } …
Jan
  • 85
  • 7
-1
votes
1 answer

i have a functions which call other functions in different CFC through mapping

I have few functions which i am trying to call from other CFCs using mappings but i had clutterred all functions with external functions calls like this: function a() { b = new mynewpage.cfc.functionb(arguments); } function c() { c = new…
Jan
  • 85
  • 7
-1
votes
1 answer

a udf or inbuild function to convert a nested struct of structures to query

Is there any build in function for converting a struct of structs to cold-fusion query, i googled and all i can found is arrayofstructs, but i am working with an api which is returning me structs of structs and i can't figure out a way to deal with…
-1
votes
1 answer

Hashing the value to the api

I had this code $params = $version.$merchant_id.$payment_description.$order_id.$currency.$amount.$result_url_1; $hash_value = hash_hmac('sha256',$params, $secret_key,false); converted to CF as param = version & merchant_id &…
chacha
  • 45
  • 4
-1
votes
1 answer

excel output giving me result of column as comma seperated

I am Using Lucee and one of my Columns is proving me a value as comma separated value from database. I want it to be formatted to show it bit changed Value in query: a,b,c Should display like in excel in the same row as: A B C
Jaguar
  • 23
  • 3
-1
votes
2 answers

have two lists and need to convert them into query

I have two separate lists which are giving me the results, I want to convert those separate lists in one query, i did used listoquery from cflib , but it does only for 1, not for more queries. How can i do it, any clue, can't use queryappend,…
SignUp
  • 45
  • 7
-1
votes
1 answer

Lucee Throwing error on OpenOffice and JODConveter

I had the following Lucee + JODConveter ehich i am trying now, I am constantly getting an error Lucee 5.3.4.80 Error (com.artofsolving.jodconverter.openoffice.connection.OpenOfficeException) Message conversion failed: could not save output…
SignUp
  • 45
  • 7
-1
votes
1 answer

Java method in Coldfusion gives double the correct answer

Well, I partly answered the question. The commas that I thought were separators in the list we being counted as part of the string. So the question becomes -- is there a better way to set up a Java list? Here is the code:
Betty Mock
  • 1,373
  • 11
  • 23
-2
votes
0 answers

Lucee renders cfdocument margins differently than Railo

We've recently switched from Railo on Windows to Lucee on Linux. However, I'm now noticing that there is a difference between how cfdocument is rendered, when using margins. We build PDF documents with a random length/height footer, which can be…
Jewwy
  • 7
  • 4
-2
votes
1 answer

changing the cfselect to normal select

I have a cfselect with bind attribute and the i want to convert that into to the normal select, it also has the onchange attached to it, what kind i do to return it normal jquery or javascript code here is my code
simone
  • 1
  • 2
-2
votes
1 answer

problem creating a select using enum values

i have mysql table and has a data like this i have a table with two columns value and label and both the columns have the enum type Data of value…
-2
votes
1 answer

Issues with the view of SQL Server

I am running this query select owner, recovery, status, collation, version from vw_db_info where name = 'test100' And I get this error: Error Executing Database Query. Invalid object name 'vw_db_info'. Is there another way I get the same…
niim
  • 13
  • 5
1 2 3
31
32