Servlet Archive
Difference between ServletConfig and ServletContext in Java Servlet is popular question in java interview. Let see following are differences. No. of web applications = That many number of ServletContext objects No. of servlet classes = …
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 …
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: …
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 …
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 …
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 …
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 …