Declare methods or variables to use later in the file.
Write expressions applicable in the scripting language.
Use any of the JSP implicit objects or any object declared with a <jsp:useBean> TAG.
SCRIPLTET are executed at request time, when the JSP engine processes the client request. If the scriptlet produces output, the output is stored in the out object, from which it is displayed.