Chapter 7. Using JSP: Being a JSP Flashcards
In JSP what’s the scriptlet tag? What does it do?
Allows you to write regular Java code inside of a JSP page.

What is a JSP Directive? What’s an example of a directive?
import is one of the first directives you’ll come across.

Within JSP what’s the tag for an Expression? How does it differ from a Scriptlet?
It automatically prints the return out. No need to do an out.println() statement!
IMPORTANT: Contents of an expression are passed to an out.println() SO no semicolon.

Within JSP what’s a declartion? What’s the syntax and how is it useful?
%!
It’s useful because you’re declaring MEMBERS of the generated servlet class.

What are the three JSP lifecycle methods?
jspInit()
jspDestroy()
_jspService()
What are the JSP implicit objects?
–Important Ones–
out
request
response
session
config
application

What’s the JSP comment tag?

How do you add parameters for a JSP to the Deployment Descriptor?
Same way you would a normal servlet, only difference is the tag is jsp-file

How would you override the jspInit() method?
Make sure to use a declaration
