Monday, 18 April 2016

How to declare and initialize a List (ArrayList and LinkedList) with values in Java mkniit.blogspot.in

Initializing a list while declaring is very convenient for quick use, but unfortunately, Java doesn't provide any programming constructs e.g. collection literals, but there is a trick which allows you to declare and initialize a List at the same time. This trick is also known as initializing List with values. If you have been using Java programming language for quite some time then you must be familiar...
Read More »

What is JSESSIONID in J2EE Web application - JSP Servlet? mkniit.blogspot.in

What is JSESSIONID in JSP Servlet JSESSIONID is a cookie generated by Servlet container like Tomcat or Jetty and used for session management in J2EE web application for http protocol. Since HTTP is a stateless protocol there is no way for Web Server to relate two separate requests coming from same client and Session management is the process to track user session using different...
Read More »

How to disable submit button in HTML JavaScript to prevent multiple form submission mkniit.blogspot.in GNIITSOLUTION

Avoiding multiple submission of HTML form or POST data is common requirement in Java web application. Thankfully, You can prevent multiple submission by disabling submit button in HTML and JavaScript itself, rather than handling it on server side. This is very common requirement while developing web application using Servlet and JSP or anyother web technology. At same time there...
Read More »

5 Difference between Application Server and Web Server in Java mkniit.blogspot.com

Application server and web server in Java both are used to host Java web application. Though both application server and web server are generic terms, difference between application server and web server is a famous J2EE interview question. On  Java J2EE perspective main difference between web server and application server is support of EJB. In order to run EJB or host enterprise...
Read More »