What are the jsp elements?



What are the jsp elements?..

Answer / Priyanshu Jain

The JSP (JavaServer Pages) elements include Scriptlets, Declarations, Actions, and Formatting-only tags. Scriptlets (<% %> or <scriptlet>) are used for Java code, Declarations (<%! %> or <declaration>) are used to declare variables and methods outside the scriptlet, Actions (<jsp:action>) are predefined tags provided by JSP that perform specific tasks like including other pages, iterating over collections, etc., and Formatting-only tags (<html:...>) are deprecated since JSP 2.1 and should be replaced with JSTL or EL.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JSP Interview Questions

Can a jsp page process html form data?

1 Answers  


What is pagecontext?

1 Answers  


How does response sendredirect work?

1 Answers  


What are the different directives in jsp?

1 Answers  


Which language is used to write servlets and jsp?

1 Answers  


What is full api?

1 Answers  


Can we write java code in jsp?

1 Answers  


What is a scriptlet in jsp and what is its syntax?

1 Answers  


What is difference between custom jsp tags and beans?

1 Answers  


Can you explain what is jsp page life cycle?

1 Answers  


Can I declare a java class in jsp?

1 Answers  


What is the jsp?

1 Answers  


Categories