Locale locale = getLocale(request);
MessageResources messages = getResources(request); // Validate the request parameters specified by the user
ActionErrors errors = new ActionErrors();
String username = (String) PropertyUtils.getSimpleProperty(form, "username");
String password = (String) PropertyUtils.getSimpleProperty(form, "password");///
if (mapping.getAttribute() != null) {
if ("request".equals(mapping.getScope()))
request.removeAttribute(mapping.getAttribute());
else
session.removeAttribute(mapping.getAttribute());
}
就这几句 分可以再开贴加
MessageResources messages = getResources(request); // Validate the request parameters specified by the user
ActionErrors errors = new ActionErrors();
String username = (String) PropertyUtils.getSimpleProperty(form, "username");
String password = (String) PropertyUtils.getSimpleProperty(form, "password");///
if (mapping.getAttribute() != null) {
if ("request".equals(mapping.getScope()))
request.removeAttribute(mapping.getAttribute());
else
session.removeAttribute(mapping.getAttribute());
}
就这几句 分可以再开贴加
解决方案 »
- 希望大家能够鼎立帮助
- 对字符串只遍历一次,实现对字符串指定的子串替换成指定串
- 做不下去了!!如何把RESULTSET 的数据插入或者更新到另外一个库的表中。
- 大侠帮忙啊!tomcat访问jboss,很奇怪的问题!!!
- 关于tomcat配置的问题,很苦恼
- JDBC 连oracle 时出现错误,,求助???
- windows server2003下weblogic7.0主控台登陆后左边的树没有显示!(一个图片显示不出的标志)!!
- 关于我"做的j2ee简单实例 jsp+servlet+ejb .需要者请进!!."中的例子的疑问?
- 如何使用JBuilder6开发EJB呢?
- hibernate一对一插入数据
- 求救:请大家帮我看看我发布程序时报的错误是什么意思。
- 用jsp连EJB怎么也连不上了!!!大侠帮忙啊!!!(JBulider9+Weblogic8.1)
MessageResources messages = getResources(request);
取出本地化消息 // Validate the request parameters specified by the user
ActionErrors errors = new ActionErrors();
String username = (String) PropertyUtils.getSimpleProperty(form, "username");
String password = (String) PropertyUtils.getSimpleProperty(form, "password");
验证输入参数///
if (mapping.getAttribute() != null) {
if ("request".equals(mapping.getScope()))
request.removeAttribute(mapping.getAttribute());
else
session.removeAttribute(mapping.getAttribute());
}
转向这么简单的代码都看不懂,也不羞的?
取出本地化消息 验证输入参数 转向
我是想问比如:if (mapping.getAttribute() != null) {
if ("request".equals(mapping.getScope()))
request.removeAttribute(mapping.getAttribute());
else
session.removeAttribute(mapping.getAttribute());这几句判断具体干什么的,这几句是转向吗,我希望你看清楚点再说,
MessageResources messages = getResources(request);
取出本地化消息 // Validate the request parameters specified by the user
ActionErrors errors = new ActionErrors();
String username = (String) PropertyUtils.getSimpleProperty(form, "username");
String password = (String) PropertyUtils.getSimpleProperty(form, "password");
验证输入参数///
if (mapping.getAttribute() != null) {
if ("request".equals(mapping.getScope()))
request.removeAttribute(mapping.getAttribute());
else
session.removeAttribute(mapping.getAttribute());
}
转向