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 |
Can a jsp page process html form data?
What is pagecontext?
How does response sendredirect work?
What are the different directives in jsp?
Which language is used to write servlets and jsp?
What is full api?
Can we write java code in jsp?
What is a scriptlet in jsp and what is its syntax?
What is difference between custom jsp tags and beans?
Can you explain what is jsp page life cycle?
Can I declare a java class in jsp?
What is the jsp?