Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between jspwriter and servlet printwriter in jsp?

912


What are action tags?

828


What is out println in jsp?

899


Why is _jspservice () method starting with an '_'?

788


What is expression language in jsp?

933


What are the two ways to include the result of another page?

2261


Why should we not configure jsp standard tags in web.xml?

855


Explain JSP directives.

964


Explain some jsp life-cycle methods that can be overridden.

826


Explain the difference between servletcontext and pagecontext in jsp?

868


What is JTGrid?

2363


What is translation phase?

981


How can I override the jspdestroy() method within a jsp page?

876


Can we override jsp service method?

885


Why is it that JComponent have add() and remove() methods but Component doesn’t?

883