J2EE-Struts
drean725
senior software developer
展开
-
struts,ajax乱码解决方案
乱码问题好像跟我们中国程序员特别有缘,一直困扰着我们,从开始的JSP乱码问题,STRUTS乱码问题,到现在的AJAX乱码问题,无一不是搞得许多程序员焦头烂额的,整天骂XXX产品对中文支持不了,UTF-8无法使用中文啊什么的,其实这里面被骂的产品中其实99%以上是对中文支持非常好的,而出现乱码的原因只是因为自身对国际化支持以及文件编码等信息的认识不知造成的。要知道一个产品那么流行,怎么可原创 2007-04-12 10:01:00 · 710 阅读 · 0 评论 -
Struts-Filter
Filter 技术是servlet 2.3 新增加的功能.servlet2.3是sun公司与2000年10月发布的,它的开发者包括许多个人和公司团体,充分体现了sun公司所倡导的代码开放性原则.由于众多的参与者的共同努力,servlet2.3比以往功能都强大了许多,而且性能也有了大幅提高. 它新增加的功能包括: 1. 应用程序生命周期事件控制; 2. 新的国际化; 3. 澄清了类的装载规则;原创 2007-04-22 13:07:00 · 2088 阅读 · 0 评论 -
解决使用LookUpDispatchAction+中文Resource 抛出异常Request...does not contain handler parameter named ...
Error:使用LookUpDispatchAction中,假设在getKeyMethodMap( )有如下代码:map.put("homepage.manage.background", "manager");map.put("homepage.customer.login", "customer");在resource.properties文件中,如果把homepage.customer.lo原创 2007-04-20 22:23:00 · 2632 阅读 · 0 评论 -
Internationalization in Struts framework dealing with 中文 乱码问题
Please check out the points as follow: Use struts framework IE browser (recommend) Every jsp must has the code: @ page language="java" pageEncoding="UTF-8"%>原创 2007-04-19 14:36:00 · 954 阅读 · 0 评论 -
UI design with Tiles and Struts
Solution 1: Basic JSPConsider the following JSP for a.jsp:html> body>Headerp>as body...p>Footer p>body>html>Consider the following JSP for b.jsp: html>body>Headerp> bs body原创 2007-04-13 12:34:00 · 737 阅读 · 0 评论 -
struts-tiles(xml defination)
Create a tile layoutOnce you find the similarities between pages (the hard part), you can create the newlayout page (the easy part). To create a tile layout, you must do the following:Note: To use原创 2007-04-12 16:00:00 · 1633 阅读 · 0 评论 -
The value for the useBean class attribute is invalid
使用Tomcat 常见 "The value for the useBean class attribute is invalid" 错误。该错误是指 JSP 中给定的 useBean 标签的 class 属性的值无效(不是 Bean 的属性值)。可见错误可能的原因包括:1. 在编译 JSP 时(不是运行时),指定的 Bean 类没找到2. Bean 虽然找到了,但是它不是 public原创 2007-04-12 10:10:00 · 1342 阅读 · 0 评论 -
【开发经验】Struts常见错误及原因分析
1 异常 javax.servlet.jsp.JspException: Cannot retrieve mapping for action /Login (/Login是你的action名字) 可能原因:action没有再struts-config.xml 中定义,或没有找到匹配的action,例如在JSP文件中使用 处理:如果出现上述异常,请查看struts-config.xml中的定义部原创 2007-04-12 10:09:00 · 737 阅读 · 0 评论 -
struts-config.xml常用配置详解
以下是一份完整的struts-config.xml文件,配置元素的说明详见注释. "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config.dtd"> 名称:data-sources 描述:data-sourc原创 2007-04-12 10:04:00 · 590 阅读 · 0 评论 -
Log4j
IntroductionInserting log statements into your code is a low-tech method for debugging it. It may also be the only way because debuggers are not always available or applicable. This is often the ca原创 2007-04-25 10:15:00 · 1203 阅读 · 0 评论