JAVA Enterprise Edition Tutorial


This course will teach you what Java Enterprise Edition is all about and how it will help you build enterprise applications. You will learn how enterprise application architectures have evolved over the time. It explores key Java EE concepts and technologies. For more videos on this course visit: www.siliconindia.com

Learn Java – Online Java Tutorials and Tips

You are new to Java that helps improve the web page design and you need to learn in order to better your skills. Java experts post there analysis in the form of Java tutorials and a lot of documentation has been done that could be referred back. It is vital for beginners to get all essential knowledge that is required to make perfect functional Java programs and equally important for advanced learners to get tips for a more enhanced approach towards Java programming.

Online Java tutorials are far more effective learning options today for learners wanting to have knowledge on Java Platform which is a hardware or software environment in which a program runs. In the online java tutorials we have already mentioned some of the most popular platforms like Microsoft Windows, Linux, Solaris OS, and Mac OS. Most platforms can be described as a combination of the operating system and underlying hardware. More information on this is available online, thus saving your time in looking for books containing more of a limited resource.

Continue reading “Learn Java – Online Java Tutorials and Tips”

Example with Source Code: A simple database-driven Java web application (CRUD) implementing JSP and Servlets

You can study and implement the following examples to create a simple Java-based database-driven web application which makes use of JSP and Servlets applying a MVC (model-view-controller) principle.

Create the following files:

DatabaseConnection.java

package sample;
import java.sql.*;

public class DatabaseConnection {

    public static Connection getConnection() {
    Connection con = null;
    try {
        // change the following line to your jdbc driver
        Class.forName("com.borland.datastore.jdbc.DataStoreDriver");
        // change this to "your database url", "username", "password"
        con = DriverManager.getConnection("jdbc:borland:dslocal:C:\\a.jds","Sample","");
        System.out.println(con);
        }
        catch (Exception ex) {
        ex.printStackTrace();
        }
    return con;
    }
}

Continue reading “Example with Source Code: A simple database-driven Java web application (CRUD) implementing JSP and Servlets”

20 Helpful jQuery Methods you Should be Using

So you’ve been playing with jQuery for a while now, you’re starting to get the hang of it, and you’re really liking it! Are you ready to take your jQuery knowledge to level two? Today, I’ll demonstrate twenty functions and features you probably haven’t seen before!


1 after() / before()

Sometimes you want to insert something into the DOM, but you don’t have any good hooks to do it with; append() or prepend() aren’t going to cut it and you don’t want to add an extra element or id. These two functions might be what you need. They allow you to insert elements into the DOM just before or after another element, so the new element is a sibling of the older one.

$('#child').after($('<p />')).text('This becomes a sibling of #child'));
$('#child').before($('<p />')).text('Same here, but this is go about #child'));

Continue reading “20 Helpful jQuery Methods you Should be Using”

Read Text File (.txt) Using JSP / Java

<%
BufferedReader input = new BufferedReader(new FileReader("text2read.txt"));
String line = "";
while ((line = input.readLine()) != null) {
out.println(line);
}
output.flush();
input.close();
%>

Source: http://experts.about.com/q/JSP-Java-Server…xt-file-JSP.htm
Additional example http://www.jguru.com/forums/view.jsp?EID=536740

SQL SELECT INTO Statement

The SQL SELECT INTO statement can be used to create backup copies of tables.

The SQL SELECT INTO Statement

The SELECT INTO statement selects data from one table, creates a new table with the exact structure and size and inserts automatically the selected data into the new table.

SQL SELECT INTO Syntax

We can select all columns into the new table:

SELECT *
INTO new_table_name [IN externaldatabase]
FROM old_tablename

Or we can select only the columns we want into the new table:

SELECT column_name(s)
INTO new_table_name [IN externaldatabase]
FROM old_tablename

Continue reading “SQL SELECT INTO Statement”