Scriptlets contain any amount of valid commands, declarations and expressions of the used programming language (we are talking about Java here).
Length of code that you can qrite in scriplets is not limited but it is good programming practice to write minimum code in scriplets. Code should be put into Java beans and Servlets. This will make code maintainance job easier.
(more…)