Tuesday, October 2, 2012

HTML email using Apache Commons Email API

The Commons Email is built on top of the Java Mail API, which basically simplifies the whole process of sending an email. With the help of HTMLEmail class in commons you can send HTML formatted email. It has all of the capabilities as MultiPartEmail allowing attachments to be easily added and also supports embedded images. In this tutorial we have created a contact US form in JSP so that we can check the capabilities of this very userful API. To send an email we need a SMTP server, from...

Saturday, August 18, 2012

Sencha PPT

...

Jquery Pagination example

Config.php <?php $mysql_hostname = "localhost"; $mysql_user = "username"; $mysql_password = "password"; $mysql_database = "database"; $prefix = ""; $bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die("Opps some thing went wrong"); mysql_select_db($mysql_database, $bd) or die("Opps some thing went wrong"); ?>Pagination.php <?php include('config.php'); $per_page = 9; //getting number of rows and calculating no of pages $sql = "select * from messages"; $rsd = mysql_query($sql); $count...

Java 7 Features

The evolution of the Java language and VM continues! Mark Reinhold (Chief Architect of the Java Platform Group) announced yesterday that the first release candidate for Java 7 is available for download, he confirms that the final released date is planned for July 28.For a good overview of the new features and what’s coming next in Java 8, I recommend this video on the Oracle Media Network, which features Adam Messinger, Mark Reinhold, John Rose and Joe Darcy. I think Mark sums up Java 7 very...

Java - Multithreading

Java provides built-in support for multithreaded programming. A multithreaded program contains two or more parts that can run concurrently. Each part of such a program is called a thread, and each thread defines a separate path of execution. A multithreading is a specialized form of multitasking. Multitasking threads require less overhead than multitasking processes. I need to define another term related to threads: process: A process consists of the memory space allocated by the operating system...

Java - Serialization

Java provides a mechanism, called object serialization where an object can be represented as a sequence of bytes that includes the object's data as well as information about the object's type and the types of data stored in the object. After a serialized object has been written into a file, it can be read from the file and deserialized that is, the type information and bytes that represent the object and its data can be used to recreate the object in memory. Most impressive is that the entire process is JVM independent, meaning an object...

Sunday, April 15, 2012

how ro get unread mails from gmail using java

/*  *&nbsp; This is the code for read the unread mails from your mail account.  *&nbsp; Requirements:  *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JDK 1.5 and above  *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Jar:mail.jar  *  */ import java.io.*; import java.util.*; import javax.mail.*; import javax.mail.Flags.Flag; import javax.mail.search.FlagTerm; public class MailReader {     Folder inbox;     // Constructor of the calss.     public MailReader()...

Monday, April 9, 2012

Here is a simple popup contact form (modal popup)

http://www.html-form-guide.com/contact-form/simple-modal-popup-contact-form.ht...

Thursday, April 5, 2012

JSP Elements

A JSP page can have two types of data: Template Data: It is the static part of a jsp page. Anything that is copied as it is directly to the response by the JSP server is known as template data. JSP Elements: It is the dynamic part of a jsp page. Anything that is translated and executed by the JSP server is known as JSP element. There are three types of JSP elements: Directive Elements: The directive elements, contains the information about the page itself that remains the same between requests for the page. The general directive...

Saturday, March 24, 2012

GlassFish and MyEclipse and Eclipse support...

For the time and energy I spent to install the Release candidate for Europa, I must admit that paying a few dollars for MyEclipse is definitely the right investment to do (although I am still missing a complete installer for Mac OSX, and a GlassFish/MyEclipse co-Bundle that would be installable in one shot). I enjoyed the JSP editor (and renderer), as well as an extensive JavaScript support that should play well with our Ajax jMaki  components (that are also available for Eclipse). There...

Configure WebLogic in MyEclipse

Hi,Please follow the steps to configure Weblogic in MyEclipse Before configuring in MyEclipse, first we need to configure the server and domain in Configuration Wizard1) Go to Start ->  Bea Web Logic -> Configuration WizardThis will open a configuration wizard for you2) Select “Create a new WebLogic Configuration” and Click next3) Select “Basic WebLogic Server Domain” and Click Next4) Select “Express” and click next5) Here, give username and password6) click next -> next ->7) By default, the domai name...

Crop Image using plug-in ,JSP and 'Servlet'

http://www.roseindia.net/tutorial/jquery/ImageCrop.h...

How Spring MVC Works

In this we will see the request flow for the spring framework. We will also show you the request flow diagram illustrating the working of Spring MVC module.The Spring MVC modules comes with the Spring Framework distribution. The Spring MVC modules of the Spring Framework well integrates with rest of the framework. This modules is also very extensible.Spring MVC is based on the MVC design pattern. Here is the list of key classes of Spring MVC.DispatcherServlet The DispatcherServlet is  configured...

Friday, March 23, 2012

Jquery examples

http://www.jqwidgets.com/jquery-widgets-demo/#demos/jqxgrid/grouping....

Spring PPT'S

http://www.pptsearch365.com/Spring-MVC.h...