Browse Today's favorites or All time favorites.
Please Sign In or Register to share and submit your questions.
Java Queries
Complete java interview questions library
What are the main elements of JSP? What are scriplets? What are expressions?
There are two types of data in a JSP page.
1. Static part (ie HTML, CSS etc), which gets copied directly to the response by the JSP Engine.
2. Dynamic part, which contains anything that can be translated and compiled by the JSP Engine.
There are three types of dynamic elements.
1. Scripting Elements: A JSP element that provides embedded Java statements. There are three types of scripting elements.
- Declaration Element: is the embedded Java declaration statement, which gets inserted at the Servlet class level.
- Expression Element: is the embedded Java expression, which gets evaluated by the service method.
- Scriptlet Elements: are the embedded Java statements, which get executed as part of the service method
2. Action Elements: A JSP element that provides information for execution phase.
3. Directive Elements: A JSP element that provides global information for the translation phase.
Write a comment