How many page directive we can use in a single JSP?
Answer Posted / rahul patil
We can have any number of page directive in a single jsp
page provided it should have only 'import' attribute.
e.g.
<%@ page import="beans.abc" buffer="2k"%> //1
.
.
.// some jsp page code
.
<%@ page import="beans.xyz"%> //2
if we replace line 2 with
<%@ page import="beans.xyz" buffer="4k"%> //not allowed
In short, we can use page directive many times but for
importing some other classes, not for setting other
attribute values.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
How many messaging models do jms provide for and what are they?
Explain jsp action elements or action tags?
What is jsp usebean?
Why is _jspservice () method starting with an '_'?
How can you include the results of another page?
List all tags that are provided in jstl?
What are advantages of jsp over asp, php, pure servlets and others?
What is difference between java and jsp?
How to send data from one page to another in jsp?
How many tags are provided in jstl?
How to include static files in a jsp?
What are the implicit objects in jsp?
Explain the advantages in jsp?
What is client scripting?
Mention the various implicit objects used in the expression