|
|
|
JSP Tutorials
|
ASCII values table
ASCII stands for American Standard Code for Information Interchange. Computers can only understand numbers, so an ASCII code is the numerical representation of a character such as @, #, $, and so on. ASCII was developed when non- printing characters were
View Rating |
|
|
JSP Tutorials
|
ArrayIndexOutOfBoundsException
In this example we are going to see how we can catch the exception ArrayIndexOutOfBoundException. ArrayIndexOutOfBoundException is thrown when we have to indicate that an array has been accessed with an illegal index.
View Rating |
|
|
JSP Tutorials
|
Custom Exceptions
Before going to understand what is Custom Exception, its important to know what is Exception. An Exception occurs whenever an abnormal condition arises at the execution of the code at run time. It is run time error.
View Rating |
|
|
JSP Tutorials
|
Multiple try catch
The code which can throw exception should be written in the try block. If the exceptions occurs at that particular block then it will be catch by the catch block. We can have more than one try/catch block.
View Rating |
|
|
JSP Tutorials
|
Try catch in JSP
In try block we write those code which can throw exception while code execution and when the exception is thrown it is caught inside the catch block. The try catch block in jsp just work as try catch block in the java.
View Rating |
|
|
JSP Tutorials
|
int Array
Array is a collection of same data type. Suppose if we have declared an array of type int then the array will take only the int values and not any other data types.
View Rating |
|
|
JSP Tutorials
|
Multidimensional Array Java
Array is a collection of a same data type. When we have the data of the same type and same scope then its better to store it in an array. We use mostly two types of arrays that is simple array and multi dimensional array.
View Rating |
|
|
JSP Tutorials
|
Declaring string array
An array is the collection of same data type. Suppose if we have a declare an array of type String, then it will store only the String value not any other data type. When we have a closely related data of the same type and scope, it is better to declare i
View Rating |
|
|
JSP Tutorials
|
Passing Parameter with
In this example we are going to use action tag. This action tag has one attribute page which is used to include a file in a jsp page. While using we are adding the file at run time.
View Rating |
|
|