1.如果前台页面的标志库内容就是不显示,但也不报错,
请检查一下,标志库的类可引用了<%@ taglib prefix="ww" uri="webwork"%>
2.can not found webwork.properties
建个文件,名为webwork.properties,放到tomcat的common\classes下即可
3.中文传递为乱码
webwork.properties中设置utf-8
webwork.locale=zh_CN
webwork.i18n.encoding=UTF-8
只要这两行即可
页面中也要设置为utf-8
页头上加上:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%@ page contentType="text/html;charset=UTF-8" %>
4.ACTION中有值,但是页面上却无值显示
注意model的返回值可正确
public Object getModel(){
return queryItem;
}
如果传值不在model对象中
注意用get(),set()进行定义
5.通过自带的model对象进行传递值,如果怎么也传递不过来,
请检查,可有 implements Action,ModelDriven
6.javax.servlet.ServletException: Could not execute action
java.lang.NullPointerException
请检查:看看对象对赋值前可new 了
请检查一下,标志库的类可引用了<%@ taglib prefix="ww" uri="webwork"%>
2.can not found webwork.properties
建个文件,名为webwork.properties,放到tomcat的common\classes下即可
3.中文传递为乱码
webwork.properties中设置utf-8
webwork.locale=zh_CN
webwork.i18n.encoding=UTF-8
只要这两行即可
页面中也要设置为utf-8
页头上加上:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%@ page contentType="text/html;charset=UTF-8" %>
4.ACTION中有值,但是页面上却无值显示
注意model的返回值可正确
public Object getModel(){
return queryItem;
}
如果传值不在model对象中
注意用get(),set()进行定义
5.通过自带的model对象进行传递值,如果怎么也传递不过来,
请检查,可有 implements Action,ModelDriven
6.javax.servlet.ServletException: Could not execute action
java.lang.NullPointerException
请检查:看看对象对赋值前可new 了