Blog Posts - Servlet



java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer [Solution]

The error message clearly says that Java runtime is not able to find a class called ServletContainer for Jersey library. This is the Servlet class you have specified in the deployment descriptor of your application. It's similar to DispatcherSe...
by javarevisited on Feb 7, 2016

Servlets and JSPs Tutorial – Learn Web Applications With Java

Description: In this Java web application tutorial I’ll show you how to create dynamic websites using the core technologies of Java web programming. If you want to create your own interactive websites, if you know some Java and you want to take...
by tutgfx on Feb 12, 2015

Constructor vs Init method in Servlet - JEE Interview Question

Can we have Constructor in Java Servlet? or Why do we need constructor in Servlet if there is already an init() method for initializing Servlet, or what is difference between init() method and constructor in Servlet are couple of questions I have se...
by javarevisited on Feb 10, 2015

How to loop a HashMap or Hashtable in JSP

Though there are number of ways to loop over HashMap in JSP, or any other Map implementation e.g. Hashtable, I personally prefer JSTL foreach tag for this. As a Java programmer, I often have urge to use Java code directly in JSP using scriptlet, but...
by javarevisited on Nov 21, 2014

How to Create Tabs UI using HTML, CSS, jQuery, JSP and JavaScript

JSP is still a popular technology for developing view part of Struts and Spring based Java application, but unfortunately it doesn't have rich UI support available in GWT, or any other library. On other day, we had a requirement to display HTML...
by javarevisited on Feb 17, 2014

Display tag Pagination, Sorting Example in JSP and Servlet

If you are a Java programmer, writing JSP pages for your web application and doesn't know much about JavaScript, jQuery, CSS and HTML, then display tag is best for creating dynamic tables, pagination, sorting, and exporting data into PDF, Word an...
by javarevisited on Feb 11, 2014

Web and Middleware JBoss Training at Hewlett Packard – Intro to JBoss JAVA application server

I and my TEAM Web and Middleware Implementation Team @Hewlett Packard are assigned an online training to follow on topic of JBoss Application server.It is my first online training of this kind where a number of people are streamed a video from a trai...

JSTL forTokens Tag Example - Split String in JSP

JSTL forTokens tag is another tag in core JSTL library to support Iteration or looping. It effectively complements, more useful <c:forEach> tag, by allowing you to iterate over comma separated or any delimited String. You can use this tag to sp...
by javarevisited on Sep 24, 2013

File Upload Example in Servlet and JSP - Java Web Application Tutorial Example

Uploading File to server using Servlet and JSP is a common task in Java web application. Before coding your Servlet or JSP to handle file upload request, you need to know little bit about File upload support in HTML and HTTP protocol. If you want you...
by javarevisited on Jul 24, 2013

How to Configure HTTPS (SSL) in Tomcat 6 and 7 Java Web Server

Setting SSL (Secure Socket Layer) in Tomcat is often a requirement, especially while developing  secure web application, which requires access over https protocol. Since Tomcat web server doesn't provide SSL settings by default, you need to know...
by javarevisited on Jul 18, 2013

Plantilla sana, plantilla productiva

JOSÉ RAMÓN PIN ARBOLEDAS, profesor de Dirección de Personas en las Organizaciones y Ética Empresarial Del Blog de José Ramón Pin. En estos tiempos de crisis prima lo urgente sobre lo importante. La urgencia lleva a algunos directivos a concen...
by hoytetoca.com on May 18, 2013

Difference between Struts 1 and Struts 2 framework

I had work previously on Struts 1 but never touched Struts 2, specially since Spring MVC was there to take the leading role. Recently one of my friend ask me to help with Struts2, which leads me to look on Struts2 framework from start. First thing I...
by javarevisited on Mar 13, 2013

5 books to learn Spring framework and Spring MVC for Java Programmers

Spring and Spring MVC is one of the most popular Java framework and most of new Java projects uses Spring these days. Java programmer often ask questions like which books is good to learn Spring MVC or What is the best book to learn Spring framework...
by javarevisited on Mar 5, 2013

5 JSTL Core IF Tag Examples in JSP - Tutorial

by javarevisited on Feb 12, 2013

How to disable submit button in HTML JavaScript to prevent multiple form submission

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. Th...
by javarevisited on Feb 5, 2013

What Is Single Directory Architecture For JSP or Serlet

In this post we will see how the structure and architecture gets created from Learner perspective. Initially the learner try to put every page and other resource in the same folder.This is very easy setup and easy to understand. This approach is cal...
by Ask QTP on Feb 4, 2013

Display Tag Export Example in JSP – Issue Fix Java Tutorial

Display tag provides export options to export page into PDF, CSV, Excel and XML in Java web application written using JSP, Servlet, Struts or Spring MVC framework. Display tag is a tag library and you just need to use it in your JSP page to display t...
by javarevisited on Jan 21, 2013

SingleThreadModel interface in java servlets. Why it is deprecated in Servlet API version 2.4?

       Do you want your servlet  to be thread-safe, and you want to limit the overhead of synchronization?.  Then you may consider the the option using SingleThreadModel but it is now deprecated because of certain limita...
by Tech Labs on Jan 14, 2013

SingleThreadModel in java servlets. Why SingleThreadModel interface is deprecated in Servlet API version 2.4?

       Do you want your servlet  to be thread-safe, and you want to limit the overhead of synchronization?.  Then you may consider the the option using SingleThreadModel but it is now deprecated because of certain limita...
by Tech Labs on Jan 14, 2013

Portlet

I portlet sono moduli web riusabili all'interno di un portale Web. Tipicamente, una pagina di un portale è suddivisa in una collezione di finestre, il contenuto di ciascuna delle quali viene definito da un diverso portlet. Ciascun portlet è destina...
by MondoUnix on Nov 16, 2012


Trending Topics

Close