 |
JSTL is a collection of tags similar to HTML that lets you produce dynamic web pages without needing to learn Java.
Why JSTL?
JavaServer Pages (JSP) technology makes it easy to embed bits of Java code (or scriptlets) in HTML documents. This solution, however, may not be suitable for all HTML...
By Sanskruti
Last Message By bapsbps
|
2 7,110 |
 |
Layout Managers
In the previous article I discussed about the various Controls in Java like Button, Checkbox, Lists, Scrollbars, Text Fields, and Text Area etc. All of these components have been positioned by the default layout manager. A layout manager automatically arranges the controls within...
By techgeek.in
Last Message By shabbir
|
1 9,078 |
 |
Multi-dimensional arrays
Java, as with most languages, supports multi-dimensional arrays - 1-dimensional, 2-dimensional, 3-dimensional, ... This discusses 2-dimensional arrays, but the same principles apply to higher dimensions.
2-dimensional arrays
2-dimensional arrays are usually...
By pradeep
Last Message By Healthcare
|
37 541,264 |
 |
Introduction
The code bound by the try block need not always throw a single exception. If in a try block multiple and varied exceptions are thrown, then you can place multiple catch blocks for the same try block in order to handle all those exceptions. When an exception is thrown it traverses...
By Sanskruti
|
0 21,559 |
 |
People generally have doubt that when we use Hibernate we simply use configuration to create SessionFactory(). Using that we create session for JDBC connection. But all these SessionFactory and Session class are interfaces. But there is no class available with this name which implements methods of...
By abhishekshahi
Last Message By shabbir
|
1 7,138 |
 |
Just like the multiple catch blocks, we can also have multiple try blocks. These try blocks may be written independently or we can nest the try blocks within each other, i.e., keep one try-catch block within another try-block. The program structure for nested try statement is:
try
{
//...
By Sanskruti
|
0 12,587 |
 |
The Decimal Format class is not very well documented, so I will try and exmplain it with an example.
Firstly, you need to import the DecimalFormat class:
import java.text.DecimalFormat; Create an instance the format object. This object can be used with doubles, as it uses a decimal. It uses a...
By pradeep
Last Message By kiddo
|
1 5,850 |
 |
Objects in Java are referred using reference types, and there is no direct way to copy the contents of an object into a new object.
The assignment of one reference to another merely creates another reference to the same object. Therefore, a special clone() method exists for all reference...
By pradeep
Last Message By javaexp
|
8 216,867 |
 |
Java, has become now undoubtedly the fuel of the development of the Software System Technology.Developers, now thus take the challenge to prove the feelings of Java as the best positive catalyst of their development life's reactions.They feel the Class, as the ultimate classic sense of the...
By Tango Issac Debian
|
0 2,275 |
 |
Today we will discuss Java packages. This is one of the most important features in Java. Java comes with many pre-listed packages. Knowingly or unknowingly, you may have used them in your code. I will explain this later on. Even if you are a beginner you had used Java package. First of all we will...
By manish174
Last Message By annasingh
|
4 7,463 |
 |
I often hear people asking on how to put an image on Java applications, thus here is an example of a painted panel that has an image in the same directory as the application *note* you cant use windows bmp with Java, but once you start creating your own images it's a good time to note that their...
By Systemerror
Last Message By tiwvinay
|
14 25,534 |
 |
Introduction
This Code snippet is used to capture Screenshot automatically and save it.
The below code performs the function of taking screenshots automatically making use of the class java.awt.Robot .The package java.awt contains all of the classes for creating user interfaces and for...
By sameer_havakajoka
Last Message By rasd123
|
7 3,064 |
 |
The JavaMail API (http://java.sun.com/products/javamail/) is a messaging framework intended to build platform-independent applications that use e-mail messaging. It is included in the J2EE platform and is available as an optional package in J2SE. The API's main purpose is not for transporting,...
By Mary
|
0 29,390 |
 |
Earlier in client- server computing, each application had its own client program and it worked as a user interface and need to be installed on each user's personal computer. In web applications we mostly use HTML/XHTML which is mostly supported by all the browsers and web page is displayed to the...
By Sanskruti
|
0 3,188 |
 |
In the previous article we discussed three examples, each of which demonstrates how to track user sessions programmatically, using URL rewriting, cookies, and hidden form fields respectively. Each of these techniques required some unique string to be exchanged between the client and the server, so...
By techgeek.in
Last Message By shabbir
|
3 17,582 |
 |
Introduction
In the last article on servlet, we noted that HTTP is the protocol most-commonly used to communicate with web applications. Unfortunately, HTTP offers no mechanism for data to be retained between requests; in other words it can't track the activities of a user across requests.
...
By techgeek.in
Last Message By shabbir
|
1 6,033 |
 |
By msi_333
|
- - |
 |
Introduction
How to split a file in to equal parts without knowing the number of records in the input file?
Background
Suppose you don't know how many records are in a dataset, but you want to divide the records as equal as possible among the output datasets. We can split a file into...
By naimish
Last Message By shabbir
|
1 7,415 |
 |
Spring Framework Features
Spring is a layered Java/J2EE application framework, based on code published in Expert One-on-One J2EE Design and Development by Rod Johnson (Wrox, 2002).
Spring includes:
- The most complete lightweight container, providing centralized, automated configuration...
By Sanskruti
Last Message By mvairavan
|
1 6,968 |
 |
Introduction
Handling character strings in Java is supported through two final classes: String and StringBuffer. The String class implements immutable character strings, which are read-only once the string has been created and initialized, whereas the StringBuffer class implements dynamic...
By S k
|
0 6,062 |