1.struts1.2+spring 2.2+Hibernate 3.0不支持中文查找问题,还有从页面插入数据变乱码问题?将Mysql 重新配置选择manul configuration后utf8即可。
2..在添加各个功能模块时,不能通过用外键动态的实现,待解决?
3..对比了一个查找Reservaation信息和查找Comment信息的表,为什么Comment表查不出来,对比跟踪了两遍花了2个多钟,痛苦,待解决?
下面是Comment表报错:
Apache Tomcat/6.0.13 - Error report <h1 font-familytahomaarialsans-serifcolorwhitebackground-colordfont-sizepx h font-familytahomaarialsans-serifcolorwhitebackground-colordfont-sizepx h font-familytahomaarialsans-serifcolorwhitebackground-colordfont-sizepx body font-familytahomaarialsans-serifcolorblackbackground-colorwhite b font-familytahomaarialsans-serifcolorwhitebackground-colord p font-familytahomaarialsans-serifbackgroundwhitecolorblackfont-sizepxa color blackaname color blackhr color d-->--<
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:384)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.lma.tools.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:33)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.
4.aciton对应的jsp中的do命名不好,应该每个类命名同一个do的名称 ,便于不同的查询和插入,编辑,从不同的用例角色中共享这样的action路径,可以不用attribute input设置加上parameter="method"相应设置即可。但是由于Struts的单例模式可能不适应一个类的并发访问。