Servlet Archive

java.lang.ClassNotFoundException : javax.servlet.jsp.jstl.core.Config

While deploying a web application of spring mvc with maven and jsp on tomcat 7.0. If you got a following problem. Problem- java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.Config at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) at org.apache.myfaces.view.jsp.JspViewDeclarationLanguage.buildView(JspViewDeclarationLanguage.java:91) at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:78) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241) at …

Servlets – Database Access Example

Accessing Database from servlets through JDBC! Accessing Access Database From Servlet This article shows you how to access database from servlets. Create Table To create the Users table in TEST database, use the following steps: …

Sending email through JavaMail API in Servlet

In this example we will see how to send email in Servlet application. JavaMail API that provides all classes require for sending an email. JavaMail API encapsulate two important package javax.mail and javax.mail.internet. These packages …

Servlets Auto Page Refresh

Consider a webpage which is displaying live game score or stock market status or currency exchange ration. For all such type of pages, you would need to refresh your web page regularly using referesh or …

Servlets Hits Counter

This example illustrates about counting how many times the servlet is accessed. When first time servlet (CounterServlet) runs then session is created and value of the counter will be zero and after again accessing of …

Servlet Upload File Example

A Servlet can be used with an HTML form tag to allow users to upload files to the server. An uploaded file could be a text file or image file or any document. Creating a …