Autocomplete textbox in JSP with Database

Autocomplete textbox in JSP with Database
Autocomplete textbox in JSP with Database using Jquery. You can retrieve your data from database and make it as suggestions for autofill textbox in JSP.

Requirements:
Download jquery-ui.js,  jquery-1.10.2.js, jquery-ui.css

JSP Page:

 

Read More

Insert Update Delete using Spring (Spring + MySQL)

Insert Update Delete using Spring (Spring + MySQL)

Here is the code to insert, delete and update records using MySQL and Spring.
Code tested in NetBeans 8.0

Create Table in Database:

student.java

Studentdao.java

Spring-Config.xml
Include this code in Spring-Config.xml

Operations.java

 

 

Read More

Saving Image in Folder and path in database using Java

Saving Image in Folder and path in database using Java

Here is the code to get the image from the user and store it in a folder and store the image path in Database.

JSP and Servlet
MySql Database
Tested with Netbeans 8.0

Database – create table with name and photourl as fields with datatype varchar().

JSP: (Upload Image)

Servlet:

 

 

Read More