这是我的 JSP 页面。
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<jsp:useBean id="link" class="com.Sshexample">
<%= link.callconst()%>
</jsp:useBean>
</body>
</html>
我想问这是我想调用与 unix 服务器建立连接的 .java 文件的主页面。任何人都可以告诉我为什么会出现此错误吗?
org.apache.jasper.JasperException: org.apache.jasper.JasperException: Unable to load class for JSP
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
我面临这个问题......?
Inside <jsp:useBean>
你写过<%= link.callconst()%>
<body>
<jsp:useBean id="link" class="com.Sshexample">
<%= link.callconst()%>
</jsp:useBean>
</body>
用这个
<body>
<jsp:useBean id="link" class="com.Sshexample"></jsp:useBean>
<%= link.callconst()%>
</body>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)