javascript - TrueMD API does not work in java servlet -
I was trying to apply the TrueMD API as: I have downloaded TrueMD.jar and added to the Java Web Subnet Application Library using Netbeans 8.0. I was able to get medication advice but not his details. I tried the following code: Secure zero process request (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {response.setContentType ("text / html; charset = UTF-8") ; PrintWriter out = response.getWriter (); String drugdetail = request.getParameter ("medicine"); TrueMDAPI.key = "3abb58c093fd817e9cddae75b3de2b"; Try {Medical Medicine = TruMDAP Metatcinidata (drugstore); Printmedicine (medicine); } Finally {out.close (); }} Static Wide Printmedicine (Medicine Medicine) {System.out.println ("Manufacturer:" + Medicine. Guest Manipaterator); System.out.println ("Brand:" + medicine.getBrand ()); System.out.println ("Category:" + medicine.getCategory ()); System.out.println ("d_cla...