Loading…

Define Scriptlet, Expression and Declaration in JSP?

A JSP expression is used to put the Java values directly into the output. It has the form of <%= Java expression %>. JSP scriptlets are more than the simple expression and used to insert complex code into the service() method of the generated servlet. Whereas, a JSP declaration defines fields or methods that get inserted into the main body of the servlet class.

Suggest An Answer

No suggestions avaliable!

Latest post from JSP Interview Questions

Ask Question