![]() |
JSP Scriptlets![]() ![]() ![]() ![]() ![]()
A Scriptlet can contain any variable, method declarations, language statements or expressions between <% and %> tags. These scriptlet codes can access any variable or beans, which are declared.
Within a scriptlet, the following things can be done: • Variables or methods can be declared, which can be used in the JSP file. • Expressions which are valid in the page scripting language can be used. • Any implicit object or objects declared with a <jsp:useBean> element can be used. • Any other statements valid as per the JSP syntax and java syntax can be used. Any text HTML tags or JSP elements must be declared outside the scriptlets. Scriptlets are executed at request time, when thenclient request is being processed. JSP Syntax:<% scriptlet code%> <html> <% forint i=0;i<=10;i++) { out.println("<B>Hello "+i +"</B>"); out.println("kk "+i); }%>
|
|
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. |