Home Jsp JSP Array Length



JSP Array Length
Posted on: June 15, 2009 at 12:00 AM
JSP Array Length is performed when you want to compute the length of array in JSP.

JSP Array Length

        

JSP Array Length is performed when you want to compute the length of array in JSP.

Understand with Example

The Tutorial illustrate an example from 'JSP Array Length'. To understand and grasp this example we create a page directive that include the language type is Java. You can see in the example that we create a Scriptlets that include an array of integer. To print the size of array we  use out.print in JSP.

array.length( )  : This method is used to display the length of array.

Here is the code of jspArrayLength.jsp

<%@ page language="java"%>
<html>
<%
int array[]={2,4,6,8,10};
out.print("Size of Array is: "+array.length);
%>
</html>

Output will be displayed as:

Download Source Code:

 

Related Tags for JSP Array Length:
jsparraytutorialrialengthjsexampletoexameilfrommtrjratetorxaxampsspatllmplrayarstrtutorssrithstpleplomo


More Tutorials from this section

Ask Questions?    Discuss: JSP Array Length  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.