What are JSP scripting elements?

Answer Posted / vikas

Between <% and %> tags,any valid Java code is called a
Scriptlet. This code can access any variable or bean declared.

For example,to print a variable.
<% String username = "visualbuilder" ;
out.println ( username ) ; %>

Is This Answer Correct ?    8 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why jsp and servlets are used?

585


List all tags that are provided in jstl?

588


What are directives in jsp?

599


Why is it that JComponent have add() and remove() methods but Component doesn’t?

588


What is jsp declaration?

571






What is < jsp:forward> tag for?

623


Differentiate between jsp scriptlet tag and declaration tag.

745


What are the components of jsp?

580


A jsp page, include.jsp, has a instance variable "int a", now this page is statically included in another jsp page, index.jsp, which has a instance variable "int a" declared. What happens when the index.jsp page is requested by the client?

747


What is an api with example?

684


List down the major differences between the jsp custom tags and java beans.

553


Is jsp and javascript same?

577


What are the lifecycle phases of a jsp?

637


What are the different life-cycle methods?

626


why ,what, when, where,how the extended star schema is used.

1700