The Staff Selection Commission (SSC) is an organization under the Government of India which annually conducts the Combined Graduate Level (CGL) exam for recruitment to various posts of the government....
Algorithms are the building blocks of programming, yet there is this common notion that you can be a software engineer without learning them. While most programming languages today have the...
In this tutorial, we share the common code block that is used to connect to an LDAP server in Java. 1. InitialDirContext To connect to an LDAP server, you can...
Hibernate is one of the most popular ORM frameworks in Java. Through Hibernate, developers deal with Java POJOs for doing CRUD operations on the database. In order to return a...
This tutorial provides several ways of converting a Java object to a Map in Java. 1. Reflection The traditional way of converting a Java object to a Map is through...
1. Reset password In order to reset a password in Oracle 11g: Log in as a system user through sqlplus or any oracle client. Run this command: alter user <user_name>...
This tutorial allows you to archive a list of compiled classes residing under a particular package in the form of a JAR file. Suppose you have 2 classes A.class &...
This tutorial provides a step-by-step guide on how to create a windows task which restarts the tomcat service at a specific time frame. 1. Create a batch file for stopping/starting...
This tutorial describes how to stop/start a windows service via batch or cmd. 1. Find service name First of all, you need to get the service name, to do this:...
This tutorial shows how to restore a deleted file from the local history in Eclipse. Eclipse keeps the deleted files in its local history and provides a very simple way...
This tutorial provides a step by step guide on how to generate a SOAP client from WSDL using Apache Axis2. The steps are pretty straightforward, if you follow them in...
This tutorial provides a step by step guide on how to generate a SOAP client from WSDL using Eclipse. 1. Create a stand-alone project If you’re going to generate the...
In our previous article, we showed how to download a file of any type from a servlet. Now for zip files, things are a bit different, in this tutorial, we...
In this tutorial, we show how to create a zip file from multiple files in Java. 1- ByteArrayOutputStream & ZipOutputStream Using ByteArrayOutputStream and ZipOutputStream classes provided by the JDK, you...
In this tutorial, we illustrate how to create a dynamic factory bean in Spring. Suppose we have a file converter application which converts files based on a specific conversion type...
By default, the @Autowired annotation of the Spring framework works by type, it automatically instantiates an instance of the annotated type. In a typical enterprise application, it is very common...
In this tutorial, we discuss 2 ways for retrieving the context path in a Spring Web application. 1- HttpServletRequest The typical way of getting the context path is through the...
In this tutorial, we discuss several ways of reading a resource file from classpath in a Spring MVC application. 1- ClassPathResource Using ClassPathResource class provided by Spring Core, you can...
In this tutorial, we discuss how to upload files with Spring MVC. If you’re more interested in doing it the old way using Servlets, then check “How to upload files...
In this tutorial, we discuss how to upload files to a servlet. Parsing the uploaded file in the servlet depends strictly on the used version of the servlet API, here...