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
Explain the difference between jspwriter and servlet printwriter in jsp?
What are action tags?
What is out println in jsp?
Why is _jspservice () method starting with an '_'?
What is expression language in jsp?
What are the two ways to include the result of another page?
Why should we not configure jsp standard tags in web.xml?
Explain JSP directives.
Explain some jsp life-cycle methods that can be overridden.
Explain the difference between servletcontext and pagecontext in jsp?
What is JTGrid?
What is translation phase?
How can I override the jspdestroy() method within a jsp page?
Can we override jsp service method?
Why is it that JComponent have add() and remove() methods but Component doesn’t?