JudoScript can be used to produce dynamica web pages just like JSP or ASP; the mechanism is called
JUSP (pronounced /ju:sp/). A JUSP page is a HTML template with embedded JudoScript code; a block of
code is enclosed in
The JUSP engine is the servlet com.judoscript.jusp.JuspServlet
. It must be
configured with an init-parameter juspRoot that points to the root of all JUSP
pages. Within a JUSP page, these variables are predefined:
servlet
-- javax.servlet.http.HttpServlet
request
-- javax.servlet.http.HttpServletRequest
response
-- javax.servlet.http.HttpServletResponse
session
-- javax.servlet.http.HttpSession
params
-- java.util.Hashtable
for the query string or posted data.
The values can be a string or a string array.
const #Cookie = javaclass javax.servlet.http.Cookie;
JUSP pages can include other JUSP pages via the directive. The extra in the
otherwise ordinary directive tells
Java GUI programs are essentially made of two parts: assembly of GUI components and event
handling. Using
For a javax.swing.Timer
object, the event handler is specified the same was
as other GUI components. The Timer
constructor takes a
java.awt.event.ActionListener
instance; in java.awt.event.ActionListener
object, and it routes all the GUI events to the
respective handler code written in ActionListener
object.
The
The following table summarises using BSF.
Category Description Language identifier judoscript File extension(s) .judo, .jud Look up a bean $$bsf.lookupBean("name-of-bean") Create a new bean JudoScript's javanew operator Register a bean $$bsf.registerBean("name-of-bean",$bean) Unregister a bean $$bsf.unregisterBean("name-of-bean") Bind a script to be executed upon event firing JudoScript's guiEvent{} or adapter Do all bean operations JudoScript method call Language home http://www.judoscript.com
With the ability to
The recommended way to build library for
A large portion of com/judoscript/jsysfxns.properties
. You can
extend this system function list by creating a similar properties file and name it as
com/judoscript/myjsysfxns.properties
. Since this properties file does not
exist in the standard com/judoscript/javapkgs.properties
,
holds the predefined Java package shortcuts. You can create your predefined Java package
shortcuts in com/judoscript/myjavapkgs.properties
.
In the script, anything starting on the next line of can be accessed via a predefined input stream. Anything on the rest of the line containing of is discarded.
ActionListener
object.
The