1。If you get a 404 error such as displayed below, make sure that the Derby database server is started, as instructed above, and then run the project again. Also make sure that the commons-pooling.jar, commons-dbcp.jar, and common-collections.jar files are added to the correct folder in your server's installation directory, as outlined above. Note that the server needs to be restarted after you add commons-pooling.jar, commons-dbcp.jar, and common-collections.jar, so that these JAR files can be loaded by the server. 最好在工程的Liberary中添加这三个包。
2。出现空白页
可能是Action中的Forward()与struts-config.xml不匹配。
3。javax.servlet.ServletException: ORA-01722: 无效数字
注意查看数据库查询语句是否正确,我是变量缺少单引号。。where student_id=' "+userID+" '
本文介绍了如何解决Java Web项目中常见的404错误、空白页显示问题及ORA-01722无效数字错误。对于404错误,需确保Derby数据库服务器已启动并重新运行项目;同时检查必要的JAR文件是否已正确添加到服务器安装目录。空白页问题通常由Action中的Forward()与struts-config.xml配置不匹配引起。ORA-01722错误则需检查数据库查询语句中的变量是否正确使用了单引号。
831

被折叠的 条评论
为什么被折叠?



