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 I extend the functionality of jsp?

0 Answers  


Can u Override any of the lifecycle methods of JSP?

1 Answers  


What is jsp declaration?

0 Answers  


How do we catch exception and process it using jstl?

0 Answers  


How to get value from java to jsp page?

0 Answers  






Is jsp front end or backend?

0 Answers  


What is welcome file list?

0 Answers  


What jsp lifecycle methods can I override?

0 Answers  


When i am useing useBean tag of JSP in weblogic server It show compiletion error..Like bad class file: C:\bea\user_projects\domains\Mahesh\applications\UseBean\WEB-INF\classes\user\UserData.class class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. user.UserData user1 = null; //[ /SaveName.jsp; Line: 4]

0 Answers  


How can my application get to know when a httpsession is removed?

0 Answers  


How do I mix jsp and ssi #include? What is the difference between include directive & jsp:include action?

0 Answers  


why ,what, when, where,how the extended star schema is used.

0 Answers  


Categories