Eclipse Tomcat 404 Issue

Reading Time: 1 minute Recently I experience this issue, even after a fresh tomcat and  eclipse installation, I add the server on eclipse and when I run it, it does show 404 page but when I manually run it it works smoothly, so the solution is very simple. Stop your server and right click on the server and choose

Adding zk archetype to maven in eclipse

Reading Time: 1 minute on eclipse or sts click on window > preferences and  on the left pane menu go to Maven and expand the menu choose Archetypes here click on add remote catalog and type in Catalog file: http://mavensync.zkoss.org/maven2/ Description: zk click on okay. When you create a new maven project from the catalog choose zk and select your favorite

Spring MVC Form Example

Reading Time: 3 minutes In this tutorial I will show you how to create a simple form using Spring 3 MVC Web framework. I have checked other examples regarding creation of forms in Spring MVC Framework, there are many ways of achieving it. With the simplicity  of Spring MVC version 3, we are easing our forms to be implemented

Listing Active Directory users Spring LDAP

Reading Time: 3 minutes Hi in this tutorial I will show you how to connect and retrieve user details on windows active directory server. So previously I have posted how to setup an active directory server on windows server 2008 enterprise edition One by one i will give you the codes and find the full project on github. So let

Oracle JNDI LDAP Connection Test

Reading Time: 1 minute If you want to test your ldap connection you may use this code. Please keep in mind when you create the project add Spring necessary jars as well as spring ldap and sun-jndi-ldapbp.jar package springframeworkldapclient; import java.util.Hashtable; import javax.naming.Context; import javax.naming.NamingException; import javax.naming.ldap.InitialLdapContext; import javax.naming.ldap.LdapContext; public class LdapContextCreation { public static void main(String[] args) { LdapContextCreation

Primitive types and Literals

Reading Time: 1 minute There are 8 primitive types boolean char int long byte short double float Boolean: one bit minimum capacity and has the value of true and false. Char: 16 bit unsigned quantity hold character values. Range of value is 0 to 65,535. Int: 32 bit signed quantity holds numbers. Range of value is -2,147,483,648 to 2,147,483,647.