我刚接触JSP并对配置感到困惑。我刚买的服务器是基于linux的服务器。我用tomcat服务器在netbeans中构建了这个web项目。
正在将文件放入名为public_html
的此文件夹中。我已将java类放入WEB-INF/classes
文件夹中。我因为无法找到我的index.jsp中使用的java类而遇到java.lang.ClassNotFoundException
错误
我对在web.xml
配置服务器以查找我的java类的内容感到困惑?任何帮助或示例表示赞赏。提前致谢。
以下是我的web.xml:
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd“>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<display-name>ThinkAuction</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
目前只有这些,在本地运行它我不需要触摸这个文件。我需要添加什么东西?