![]() |
JSP Declaration![]() ![]() ![]() ![]() ![]()
A JSP declaration declares one or more variables and methods, which will be used in the JSP file. It is nothing but declaring variables and methods like in normal java program, but within a JSP syntax. The declarations must be a valid java syntax and must end with a semi colon. Any number of variables and methods can be declared within a single declaration statement. A declaration is valid in the JSP page and any of its static include files.
<html> <title>Include</title> <body bgcolor="Lightgreen"> <%@ page language="java"%> <h1><I>Hello,</I>Welcome to JSP World</h1> <%@include file="date.jsp"%> <h3>We are coming back soon</h3> </body> </html> <%!private int l=4; public void mymethode(){ //Some Process}%>
|
|
Domain NamesJSP Java Web Server Installation Java Web Server Administration The Initial Screens The Setup Button The Monitoring Button The Security Button The Servlets Button JSP Technology Evolution of Dynamic Content Technologies Features of JSPJSP Versus Servlets JSP Versus ASP Defining JSP Implementation Life Cycle of JSP JSP Application Models Writing your First Java Server Pages File
JSP Directives
JSP Declarations
JSP Scriptlets
JSP Expressions
Standard ActionsWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |