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.
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 |
Answer / chuntang
language
import
session
buffer
isThreadSafe
ErrorPage
isErrorPage
Info
contentType
pageEncoding
isELIgnore
autoflush
| Is This Answer Correct ? | 2 Yes | 4 No |
What is application in jsp?
What is the difference between jsp and thymeleaf?
What is the difference between <jsp:forward> and sendRedirect?
What is the difference between server side and client side programming?
What is the use of pagecontext in jsp?
How do we prevent browser from caching output of my jsp pages?
What is meant by implicit objects and what are they?
How can the applets be displayed in the jsp? Explain with an example.
Explain the <jsp:param> action?
What are the attributes of page directive?
Tell us about the jsp life cycle methods.
Which is best centre in chennai.. i am wil study to java... pls help me..