摘要: 1.在src下 建立 struts.properties 文件,内容为:struts.custom.i18n.resources=globalMessages struts.custom.i18n.resources是固定写法,在struts2核心包中可以找到。2.在src下 建立globalMessages_en.properties (代表英文国际化)、建立globalMessages_zh.properties(中文国际化)文件 globalMessages_en.properties内容为:(命名=你想要显示的名字) username=username password=pas... 阅读全文
posted @ 2014-01-08 23:40 艺言弈行 阅读(580) 评论(0) 推荐(0) 编辑
摘要: 这通常是由于使用了struts标签,而没有配置相关联的filter。struts标签只有在http请求通过标签的servlet filter过滤器之后才可用,这些过滤器用来为这些标签初始化struts分发器)所以,问题原因:用了struts标签,但没有引入标签? JSP页面中没有加入类似下面内容: 也有可能是配置问题web.xml中配置的struts2 filter拦截器不是/*应该配置成: struts2 /* 原来的配置为:*.action 阅读全文
posted @ 2014-01-08 22:02 艺言弈行 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 表结构:group表(groupid int,groupname varchar)表中数据:id name 1 分组1 2 分组2 3 分组3 4 分组4---------------------------------------------------------SQL:INSERT INTO grouping(groupid,groupname) SELECT MAX(groupid)+1,... 阅读全文
posted @ 2014-01-08 17:03 艺言弈行 阅读(2958) 评论(0) 推荐(0) 编辑