如何在不使用servlet的情况下从Java类中击中JSP?我需要从客户端计算机到服务器(tomcat)的参数,然后将其插入数据库。以下是我的Java类编码:publicvoidcallJSP(StringfullContent){//convertStringintoInputStreamInputStreamis=newByteArrayInputStream(fullContent.getBytes());InputStreamReaderisr;BufferedReaderbr;Stringline;URLurl;URLConnectionconnection;ObjectOutput