html - Custom packet import problem in NetBeans development javaweb
我想大声告诉你
我想大声告诉你 2017-05-27 17:41:10
0
1
742


As shown in the picture, this is my javaweb project on NetBeans. The two main files currently are index.jsp,SpecialBook.java, two files, I instantiated SpecialBook.java in index.jsp, the details are as follows

The first picture above is to import this class, and the second picture is to call this class

Then here comes the problem

Run this code, prompt

SpecialBook cannot be resolved to a type

Please give me the answer

我想大声告诉你
我想大声告诉你

reply all(1)
小葫芦

Need to import at the beginning of index.jspSpecialBook:

<%@ page language="java" import="BS.SpecialBook" pageEncoding="UTF-8"%>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template