Error I got while trying to make json work in a jsp page . How to debug this?

后端 未结 3 1001
我在风中等你
我在风中等你 2021-01-19 03:33
<%@ page language=\"java\" import=\"net.sf.json.JSONArray\" %>

 <%
  JSONArray arrayObj=new JSONArray();
   arrayObj.add(\"MCA\");
   arrayObj.add(\"Amit K         


        
3条回答
  •  日久生厌
    2021-01-19 04:35

    Either the JSON library is not there where you think it is, or the JAR file of the JSON library which you've downloaded simply doesn't contain that class. Investigate the JAR file using a ZIP or RAR tool. There should be a net/sf/json/JSONArray.class file inside the JAR. If it is missing, then you probably downloaded the wrong library.

提交回复
热议问题