Day: 19 January 2017

Return JSON Response in Servlet In this example, we will show simple example about how to return Json response in servlet. The example program has been tested with apache tomcat environment and output are shared in the post. Project Structure Servlet Class (EmployeeService.java) package com.dineshkrish.service; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; […]
Daily Quote Webservice API Example in Java In this example, I have written simple program about Daily Quote Webservice API Example in Java. The program has been tested and output shared in the same post. Project Structure Response.java package com.dineshkrish; public class Response { private Success success; private Contents contents; public Success getSuccess() { return […]