首页 > 其他分享 >jsp:useBean找不到类(xxx cannot be resolved to a type)

jsp:useBean找不到类(xxx cannot be resolved to a type)

时间:2022-10-24 21:55:05浏览次数:35  
标签:resolved xxx useBean cannot jsp type

解决
使用的javaBean类必需放在具体的包下,而不能缺省放置

例:
如果我想使用TestBean类,就可以把它放入test包下(不能只放在src目录下,必需放在某个包中!!

jsp中class如下设置:
<jsp:useBean id="bean" class="test.Testbean"/>

标签:resolved,xxx,useBean,cannot,jsp,type
From: https://www.cnblogs.com/lunalight/p/16823149.html

相关文章