How To Create A Simple Login Form Using Java Servlet And MySQL DB
Jul30

How To Create A Simple Login Form Using Java Servlet And MySQL DB

Java Servlets are basically objects which sends back a response based on the incoming request. They are basically used to extend the functionality of a web server. To implement a servlet, you need to have the servlet-api.jar and since we’re using MySQL for DB authentication, you also need to have the mysql-connector-java-bin.jar. Without these two, your application won’t run. If you’re using Netbeans and have...

Read More
Parsing XML In Java Using Java DOM Parser
Jul12

Parsing XML In Java Using Java DOM Parser

One of the easiest way to parse XML using Java is to use the DOM parser. The first step is to import the libraries that you need to parse and retrieve the tag values from the XML. Here’s a sample XML that I have used. <?xml version="1.0"?> <employee> <emp empno="123"> <firstname>Rahul</firstname> <lastname>Singh</lastname> <salary>8500</salary> </emp> <emp...

Read More
Building a Java Web Start Application
Aug08

Building a Java Web Start Application

While checking out some tutorials of Java on the Oracle website, I discovered that they were using Java Web Start Launcher Applications as demo for the viewers. Basically the applications are JNLP FilesĀ  ( Java Network Launch Protocol ). For the applications to work, you do need to have Java installed on your system. The main advantage in using Java Web Start technology is you can deploy independent software on any system over the...

Read More
Adding and Removing Components Dynamically from JPanel with MySQL Database
Jul23

Adding and Removing Components Dynamically from JPanel with MySQL Database

During one of my PHP projects last year, I had to add and remove some components dynamically. Since it was on PHP, I had used jQuery for that purpose. I’m currently working on bringing that project over to Java. The first thing that I looked up on Google was creating dynamic variable names because I need it specifically for that purpose. The answer is a big NO. So, here’s a simple way of adding and removing components...

Read More
Connecting Java Application to MySQL Database in NetBeans
Jul17

Connecting Java Application to MySQL Database in NetBeans

Since I have started blogging, I have gotten well versed with web development languages like PHP & MySQL along with HTML, CSS and Javascript. So, for the last couple of weeks I have been trying out Java, specifically Java Applications which are standalone programs that can run on any computer provided you have JDK installed. The quickest way to learn a new programming language is to do projects on them. A while back, I did a PHP...

Read More

Pin It on Pinterest