189 8069 5689

添加到收藏夹及tomcat启动报错

Tomcat报错的问题:在控制台打出的
 at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance...

警告: Failed startup of context com.google.apphosting.utils.jetty.DevAppEngineWebAppContext@1242b11{/,E:\workspace\uploadPhoto\war}

Class: com.opensymphony.xwork2.spring.SpringObjectFactory
File: SpringObjectFactory.java
Method: getClassInstance
Line: 209 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:209:-1
Caused by: java.lang.NullPointerException  at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:209)

原因两个:
1.lib中多导入包的大原因:去掉struts2-spring-plugin-2.1.8包即可,因为没有用到spring。
2.还有的原因是用spring了,却没加监听器,在web.xml里面加上
org.springframework.web.context.ContextLoaderListener


添加文件夹方式:

添加到收藏夹
是用来添加到收藏夹的
关闭网页时弹出设为主页对话框代码: 
onunload="iehomepage.style.behavior=’url(#default#homepage)’;if(!(iehomepage.isHomePage(’
htto;//www.csdn.net’)))iehomepage.setHomePage(’htto;//www.csdn.net’);">
打开网页弹出设为主页对话框代码: 
onload="iehomepage.style.behavior=’url(#default#homepage)’;if(!(iehomepage.isHomePage(’
htto;//www.csdn.net’)))iehomepage.setHomePage(’htto;//www.csdn.net’);">
单击链接设为主页 
鼠标滑过设定为主页 
附添加到收藏夹代码:
离开网页时弹出 
 
网页载入时弹出 
 
右键弹出 
单击文字弹出 
鼠标滑过文字弹出