How to?

How to parse XML file using XPath parser

XPath is used to parse a XML document whenever we know  what we have to parse like: tag name, attribute name. That means we can directly indicate and parse whatever(tag or attribute value) we want to parse.   Lets see an example:   package com.sourav.xpathex; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; …

How to parse XML file using XPath parser Read More »

How to download and install Apache tomcat on Windows?

Step 1: Installation of JDK: download and install from this link JDK Download Step 2: Setting the class path variable for JDK: Two methods are there to set the classpath. 1. Set the class path using the following command: set PATH=”C:\Program Files\Java\jdk1.5.0_08\bin”;%PATH% 2. The other way of setting the class path variable is: First right …

How to download and install Apache tomcat on Windows? Read More »

How to resolve “The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path” problem in eclipse?

Problem : Or if you “run as server” you can see the error like: “The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path”   Solutions: Method 1: Right Click on your project folder, Choose Property>Project Facets Then select Runtimes and choose your desired server and click Apply>Ok       Method 2: If …

How to resolve “The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path” problem in eclipse? Read More »