首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

Only a type can be imported. com.SimpleBean resolves to a package

2012-03-31 
jsp编译有错,请高手指点啊An error occurred at line: 6 in the generated java fileOnly a type can be i

jsp编译有错,请高手指点啊

An error occurred at line: 6 in the generated java file
Only a type can be imported. com.SimpleBean resolves to a package

An error occurred at line: 10 in the jsp file: /WebTest/WebRoot/JavaBean/SimpleBean.jsp
SimpleBean cannot be resolved to a type
7:  
8: <body>
9: <%
10: SimpleBean simple = new SimpleBean();
11: simple.setName("wang");
12: simple.setAge("21");
13: %>


[解决办法]
没有引入SimpleBean类!
[解决办法]
<%page import=
[解决办法]
<%@page import="SimpleBean的全类名"%>
引入SimpleBean
[解决办法]
请先引入com.SimpleBean包。。。
[解决办法]
嗯,引入SimpleBean
[解决办法]
在前面用<%@page import="SimpleBean的全类名"%>来导入这个类,它所在的包一定要对哦。

[解决办法]
SimpleBean这个类的包引入看看!
[解决办法]
要导包把<%@page import= %>
[解决办法]
需要引入

热点排行