|
|
Lua Server Pages Tutorial
You will find learning Lua Server Pages, LSP for short, easy if you have experience with other Server Side Scripting languages, such as ASP, JSP, PHP, etc.. The differences between these languages are the scripting languages used and the web-server API's. It should not take more than one day to get up to speed with LSP programming if you know another Server Side Scripting language.
We use Lua as the scripting language. The LSP API is similar to the API provided to JSP, but you will find it much easier to master and faster to design web-applications with LSP.
As the above image shows, the LSP tutorial also includes an interactive editor that allows you to execute arbitrary Lua code in the server. The tutorial can also be used as a general interactive introduction to the Lua Programming Language. The Lua code is inserted into a standard HTML FORM in the browser. The browser sends the FORM data to the server using HTTP POST, where the Lua code is executed. The server sends the result of the executed code back to the browser, where it is displayed in the bottom right frame.
You do not need any tools other than BarracudaDrive and a basic text editor when developing and running LSP applications. It is possible to design a complex database driven web-application with nothing but a simple text editor.
