jsp网站上传空间后所有连接数据库的网页不显示,错误提示在下面
org.apache.jasper.JasperException:UnabletocompileclassforJSP:Anerroroccurredatline:7i...
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. entity.Brand_tendency resolves to a package
An error occurred at line: 8 in the generated java file
Only a type can be imported. entity.Flash resolves to a package
An error occurred at line: 9 in the generated java file
Only a type can be imported. dao.Work resolves to a package
An error occurred at line: 86 in the jsp file: /index.jsp
Work cannot be resolved to a type
83:
84: <div id="flash_index">
85: <% sql="select * from flash where istop=? order by fla_id desc";
86: String fla_url=new Work().queryOneEntity(sql,Flash.class,1).getFla_url();
87: %>
88:
89: <param name="movie" value="images/flash/test2.swf"/>
An error occurred at line: 86 in the jsp file: /index.jsp
Flash cannot be resolved to a type
83:
84: <div id="flash_index">
85: <% sql="select * from flash where istop=? order by fla_id desc";
86: String fla_url=new Work().queryOneEntity(sql,Flash.class,1).getFla_url();
87: %>
问题我自己解决了,是数据库的远程连接问题,我的代码和数据库都放到服务器了,数据库的连接没改成内部连接,用的外部连接,所以。。。 展开
An error occurred at line: 7 in the generated java file
Only a type can be imported. entity.Brand_tendency resolves to a package
An error occurred at line: 8 in the generated java file
Only a type can be imported. entity.Flash resolves to a package
An error occurred at line: 9 in the generated java file
Only a type can be imported. dao.Work resolves to a package
An error occurred at line: 86 in the jsp file: /index.jsp
Work cannot be resolved to a type
83:
84: <div id="flash_index">
85: <% sql="select * from flash where istop=? order by fla_id desc";
86: String fla_url=new Work().queryOneEntity(sql,Flash.class,1).getFla_url();
87: %>
88:
89: <param name="movie" value="images/flash/test2.swf"/>
An error occurred at line: 86 in the jsp file: /index.jsp
Flash cannot be resolved to a type
83:
84: <div id="flash_index">
85: <% sql="select * from flash where istop=? order by fla_id desc";
86: String fla_url=new Work().queryOneEntity(sql,Flash.class,1).getFla_url();
87: %>
问题我自己解决了,是数据库的远程连接问题,我的代码和数据库都放到服务器了,数据库的连接没改成内部连接,用的外部连接,所以。。。 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询