首页上一页 1 下一页尾页 2 条记录 1/1页
《JSP网络开发实例自学手册》书中附带例子出现错误
发表在JavaWeb图书答疑
2011-04-22
是否精华
是
否
版块置顶:
是
否
我购买了《JSP网络开发实例自学手册》书中的新闻网的那个例子出现错误,
平台是tomcat6.0+jdk1.6+sql2000sp4在运行的时候总是
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 7 in the generated java file
Only a type can be imported. com.actionForm.NewsForm resolves to a package
和
An error occurred at line: 15 in the jsp file: /wyNews/index.jsp
ObjectDao cannot be resolved to a type
12: <title>宇晨新闻网--首页</title>
13: </head>
14: <%
15: ObjectDao objectDao=new ObjectDao();
16: String typeNews=null;
17: String hql="";
18: java.util.List list=null;
还有一些其他错误,希望斑竹看看,,帮帮忙,小弟在这谢谢了。
我上传到115里面2个压缩包,一个是书上原样的例子,还有一个就是我添加了LIB的例子,
斑竹帮忙调试下,谢谢。
http://u.115.com/file/t65605aeae 带LIB
http://u.115.com/file/t629fd502a 不带LIB
平台是tomcat6.0+jdk1.6+sql2000sp4在运行的时候总是
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 7 in the generated java file
Only a type can be imported. com.actionForm.NewsForm resolves to a package
和
An error occurred at line: 15 in the jsp file: /wyNews/index.jsp
ObjectDao cannot be resolved to a type
12: <title>宇晨新闻网--首页</title>
13: </head>
14: <%
15: ObjectDao objectDao=new ObjectDao();
16: String typeNews=null;
17: String hql="";
18: java.util.List list=null;
还有一些其他错误,希望斑竹看看,,帮帮忙,小弟在这谢谢了。
我上传到115里面2个压缩包,一个是书上原样的例子,还有一个就是我添加了LIB的例子,
斑竹帮忙调试下,谢谢。
http://u.115.com/file/t65605aeae 带LIB
http://u.115.com/file/t629fd502a 不带LIB