package test1.
Public class test2 {
Public static class test {
Public String sd () {
Return "sd";
}
}
}
JSP
<% @ page import="test1. Test2" % & gt;
<% -- --
Created by IntelliJ IDEA.
User: fates
Date: 2020/11/25
Time: when
To change this template use File | Settings | File Templates.
- % & gt;
<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<body>
<%
String STR.
The te test2=new test2. Test ();
% & gt;
<%=te. The sd () % & gt;