How to resolve maven dependency conflicts

When dealing with lots of maven dependencies we normally ends up with conflicts. This can be due to different versions of same library in classpath. In this case we have to manually identify the exact maven dependencies with which this library is added. Maven provides an option to list all the libraries added to classpath due Read More…

Abbreviations used in Java world

AFC – Application Foundation Classes AJAX – Asynchronous JavaScript and XML ANT – Another Neat Tool AWT – Abstract Window Toolkit CMP – Container Managed Persistence CMT – Container Managed Transaction EJB – Enterprise Java Beans GWT – Google Web Toolkit IDE – Integrated Development Environment JAR – Java Archive JAX – Java API for Read More…

Solution for iframe issue in iPad

iframe is behaved differently in iPad compared to other web browsers with different platform. It can be solved with the following set of code: <div style=”border:1px solid black;height:202px; width:402px;overflow:auto;”> <iframe style=”border:1px solid black;height:200px; width:400px;overflow:auto;” src=”http://jyothis.co.in”/> </div> A demo of this solution can be viewed from the following link: http://demo.jyothis.co.in/iframe/

HTML form tag and new line

Sometimes the browser will display a new line in HTML page where the form tag is started. This can be fixed by using any of the following CSS/HTML code. In CSS file: form {display: inline; } In HTML (inline CSS) <form style=”display: inline;”></form>

Setting https certificate trusted in Java

After digging a lot in web, I found the following snippet is useful in some scenarios, where we tries to connect to a HTTPS URL from our java code.  import java.io.BufferedReader;  import java.io.IOException;  import java.io.InputStreamReader;  import java.net.MalformedURLException;  import java.net.URL;  import java.net.URLConnection;  import java.security.KeyManagementException;  import java.security.NoSuchAlgorithmException;  import java.security.cert.CertificateException;  import java.security.cert.X509Certificate;    import javax.net.ssl.HostnameVerifier;  import javax.net.ssl.HttpsURLConnection;  import Read More…

Display year in jsp using jstl

As a programming standard, we don’t use java scriptlets in our JSP files. The best practice is to use JSTLs in JSP files to load the dynamic contents. Displaying current year in JSP is one of the common requirement, at least for copyright messages. Displaying current year in JSP can be achieved by using the Read More…