Where is page directive




















The extends attribute defines the parent class that will be inherited by the generated servlet. It is rarely used. This attribute simply sets the information of the JSP page which is retrieved later by using getServletInfo method of Servlet interface. The buffer attribute sets the buffer size in kilobytes to handle output generated by the JSP page.

The default size of the buffer is 8Kb. The language attribute specifies the scripting language used in the JSP page. The default value is "java". The errorPage attribute is used to define the error page, if exception occurs in the current page, it will be redirected to the error page. JavaTpoint offers too many high quality services. Mail us on [email protected] , to get more information about given services.

Please mail your requirement at [email protected] Duration: 1 week to 2 week. JSP directives page directive Attributes of page directive. Next Topic Jsp Include Directive. These special instructions are used for translating JSP to servlet code. In this chapter, you will learn about the different components of directives in detail. In JSP's life cycle phase, the code must be converted to a servlet that deals with the translation phase.

They provide commands or directions to the container on how to deal with and manage certain JSP processing portions. Directives can contain several attributes that are separated by a comma and act as key-value pairs.

Write and Response. Write How many web. What is Protected Configuration in asp. Static variables, what is their life span? NET Session? What does mean Stateless? What is the Difference between session and caching?

What are different types of caching using cache object of ASP. Which method is used to remove the cache object? How many types of Cookies are available in ASP.

What is the code behind and Inline Code in Asp. What is master page in ASP. Can you change a Master Page dynamically at runtime? What is cross-page posting in ASP. How to redirect a page in asp. How to register custom server control on ASP. NET page? How do you validate Input data in Asp. What's the difference between ViewData and ViewBag? Difference between Response.

Redirect and Server. Transfer What is the function of the CustomValidator control? How to use the directives in an ASP. NET page. It is simple to add directives to an ASP. The best way is to put the directive at the top of your page.

But you can put a directive anywhere in a page. One more thing, you can put more than one attribute in a single directive. Here is the full list of directives:.

Let's discuss something about each directive. Page When you want to specify the attributes for an ASP. NET page then you need to use Page Directive.



0コメント

  • 1000 / 1000