search

Home  >  Q&A  >  body text

html - Custom packet import problem in NetBeans development javaweb


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

我想大声告诉你我想大声告诉你2769 days ago746

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-05-27 17:43:10

    Need to import at the beginning of index.jspSpecialBook:

    <%@ page language="java" import="BS.SpecialBook" pageEncoding="UTF-8"%>

    reply
    0
  • Cancelreply