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
Run this code, prompt
SpecialBook cannot be resolved to a type
Please give me the answer
高洛峰2017-05-27 17:43:10
Need to import at the beginning of index.jspSpecialBook
:
<%@ page language="java" import="BS.SpecialBook" pageEncoding="UTF-8"%>