我想在动态web应用程序中从.jsp页面调用Java函数,使用tomcat 7。但是它给了我错误:
JSP代码:
<%
if(request.getParameter("submit") != null)
{
Test t= new Test();
t.printHello();
}
%>
public class Test {
public void printHello()
{
System.out.println("Hello world!");
}
}
我明白了,
错误:
您好,我有一个Jsp页面,我想在我的另一个jsp页面中调用该jsp页面。例如,我有一个includefile.jsp页面
<html>
<body>
<b><font color='red'> Hello World</font></b><br>
<b><font color='red'> HTML file is included in JSP page<font></b>
</body>
</