Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

What’s the difference between forward and sendredirect?

0 Answers  


What are the components that make up a tag library in jsp?

0 Answers  


How to call java method in jsp page on button click?

0 Answers  


What is session getattribute in jsp?

0 Answers  


How to use jsp el to get http method name?

0 Answers  






Can we define a class inside a jsp page?

0 Answers  


How jsp is executed?

0 Answers  


What is jsp index?

0 Answers  


What is jspinit method?

0 Answers  


Where is jsp used?

0 Answers  


how can we retrieve the values in jsp by using custom tags

4 Answers   IBM, Wipro,


How to forward a request to another source?

0 Answers  






Categories