Java-Send JSON Request and Read JSON Response

In this video I have shown how to Send a JSON Post request using JAVA and Parse the Response using JAVA. For testing we are using the Open web service from this website https://gurujsonrpc.appspot.com. In this project we are using 2 jars, 1. java-json.jar 2. org.apache.commons.io.jar Post_JSON.java package com.chillyfacts.com; import java.io.BufferedInputStream; import java.io.InputStream; import java.io.OutputStream; …

Continue reading

JAVA-Download a file from URL

How to download a file from URL using Java. The jar file org.apache.commons.io.jar should be added to class path as shown in the video Update the Directory Name, File Name and URL as per your need. 1. Download_URL.java package URL_Download; import java.io.BufferedInputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import org.apache.commons.io.FileUtils; public …

Continue reading

Download javax.servlet-3.0.jar File

META-INF/LICENSE.txt META-INF/MANIFEST.MF META-INF/maven/org.glassfish/javax.servlet/pom.properties META-INF/maven/org.glassfish/javax.servlet/pom.xml javax.servlet.AsyncContext.class javax.servlet.AsyncEvent.class javax.servlet.AsyncListener.class javax.servlet.DispatcherType.class javax.servlet.Filter.class javax.servlet.FilterChain.class javax.servlet.FilterConfig.class javax.servlet.FilterRegistration.class javax.servlet.GenericServlet.class javax.servlet.HttpConstraintElement.class javax.servlet.HttpMethodConstraintElement.class javax.servlet.MultipartConfigElement.class javax.servlet.Registration.class javax.servlet.RequestDispatcher.class javax.servlet.Servlet.class javax.servlet.ServletConfig.class javax.servlet.ServletContainerInitializer.class javax.servlet.ServletContext.class javax.servlet.ServletContextAttributeEvent.class javax.servlet.ServletContextAttributeListener.class javax.servlet.ServletContextEvent.class javax.servlet.ServletContextListener.class javax.servlet.ServletException.class javax.servlet.ServletInputStream.class javax.servlet.ServletOutputStream.class javax.servlet.ServletRegistration.class javax.servlet.ServletRequest.class javax.servlet.ServletRequestAttributeEvent.class javax.servlet.ServletRequestAttributeListener.class javax.servlet.ServletRequestEvent.class javax.servlet.ServletRequestListener.class javax.servlet.ServletRequestWrapper.class javax.servlet.ServletResponse.class javax.servlet.ServletResponseWrapper.class javax.servlet.ServletSecurityElement.class javax.servlet.SessionCookieConfig.class javax.servlet.SessionTrackingMode.class javax.servlet.SingleThreadModel.class javax.servlet.UnavailableException.class javax.servlet.annotation.HandlesTypes.class javax.servlet.annotation.HttpConstraint.class javax.servlet.annotation.HttpMethodConstraint.class javax.servlet.annotation.MultipartConfig.class javax.servlet.annotation.ServletSecurity.class javax.servlet.annotation.WebFilter.class javax.servlet.annotation.WebInitParam.class javax.servlet.annotation.WebListener.class javax.servlet.annotation.WebServlet.class javax.servlet.descriptor.JspConfigDescriptor.class javax.servlet.descriptor.JspPropertyGroupDescriptor.class javax.servlet.descriptor.TaglibDescriptor.class …

Continue reading