Difference between include directive and include action tag in JSP

  Both include directive and include action tag are used to include some jsp page, html page or text file inside another jsp page. Still there are several differences between them that I have explained in this tutorial. Difference between include directive and include action tag in JSP   S. No. include directive include action tag 1. It includes resource at translation time. Translation is the phase of jsp life cycle in which jsp is converted into servlet. It includes

Read more

Save and Retrieve Image from MySQL Database Using Servlet and JSP

Here you will learn how to save and retrieve image from mysql database using servlet and jsp. This method will work with Servlet 3.0 and MySQL 5.5 and higher versions. Also Read: How to Connect Java (JDBC) with MySQL or Oracle Database Save and Retrieve Image from MySQL Database Using Servlet and JSP Database Create a table in mysql database with following schema. Database Name: test Table Name: data Here I have used MEDIUMBLOB datatype to store image in database. It

Read more