How many page directive we can use in a single JSP?

Answers were Sorted based on User's Feedback



How many page directive we can use in a single JSP?..

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

How many page directive we can use in a single JSP?..

Answer / chuntang

language
import
session
buffer
isThreadSafe
ErrorPage
isErrorPage
Info
contentType
pageEncoding
isELIgnore
autoflush

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More JSP Interview Questions

How can the applets be displayed in the jsp? Explain with an example.

0 Answers  


What is the use of requestdispatcher?

0 Answers  


What is a jsp expression?

0 Answers  


What is the use of jstl tags in jsp?

0 Answers  


What is difference between jspwriter and servlet printwriter?

0 Answers  






What is the difference between Java Servlet & JSP?

1 Answers  


How can I prevent direct access to a jsp page from a browser?

0 Answers  


Define JSP Scriptlet.

0 Answers  


Are application, pageContext and object of ServletContext same or not?

2 Answers  


What is tld file?

0 Answers  


What is jsp-config in deployment descriptor?

0 Answers  


Is jsp front end or backend?

0 Answers  


Categories