>
>
> On the JSS model below, what happens to any code that's in the file
> outside of any function definitions?
>

Any code or function which are outside of doGet, doPost...etc methods will
be executed on global scope and can be accessed within doGet(), doPost()...
methods.

i.e. The *.jss file is first loaded into Rhino engine, which adds all
toplevel variables/functions into the top level scope. Then, relevant
doXXX() function will be executed where we can access those toplevel
variables/functions.

Further, request, response, and session objects are passed as args to the
doXXX() function, so won't be available to the outside of the function.

regards,
Ruchira
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to