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 do you mean by jsp?
What is the purpose of jsp?
What are jsp el implicit objects and how it’s different from jsp implicit objects?
Why are jsp pages preferred for creating web-based client program?
Give a sample jsp configuration in the deployment descriptor.
What are the life-cycle methods for a jsp?
What are the implicit, internal el jsp objects and their differences from jsp objects?
How to delete a cookie in jsp?
Explain the difference between servlet and jsp?
What will happen if iselignored attribute is set as false?
Explain the jspdestroy() method?
Write a simple example for the clone() method.