How many page directive we can use in a single JSP?
Answers were Sorted based on User's Feedback
Answer / rahul patil
We can have any number of page directive in a single jsp
page provided it should have only 'import' attribute.
<%@ 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
|Is This Answer Correct ?||3 Yes||1 No|
Answer / chuntang
|Is This Answer Correct ?||2 Yes||4 No|
What’s the difference between forward and sendredirect?
What are the components that make up a tag library in jsp?
How to call java method in jsp page on button click?
What is session getattribute in jsp?
How to use jsp el to get http method name?
Can we define a class inside a jsp page?
How jsp is executed?
What is jsp index?
What is jspinit method?
Where is jsp used?
how can we retrieve the values in jsp by using custom tags
How to forward a request to another source?