﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-学习是为了明天，为了更好的明天，需要更努力的学习！-随笔分类-STRUTS</title><link>http://www.blogjava.net/louieling/category/18770.html</link><description>学会做人</description><language>zh-cn</language><lastBuildDate>Wed, 28 Feb 2007 07:56:04 GMT</lastBuildDate><pubDate>Wed, 28 Feb 2007 07:56:04 GMT</pubDate><ttl>60</ttl><item><title>用struts 编写validate的登录程序[有数据库oracle](转)</title><link>http://www.blogjava.net/louieling/archive/2006/12/28/90567.html</link><dc:creator>路易</dc:creator><author>路易</author><pubDate>Thu, 28 Dec 2006 11:21:00 GMT</pubDate><guid>http://www.blogjava.net/louieling/archive/2006/12/28/90567.html</guid><wfw:comment>http://www.blogjava.net/louieling/comments/90567.html</wfw:comment><comments>http://www.blogjava.net/louieling/archive/2006/12/28/90567.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/louieling/comments/commentRss/90567.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/louieling/services/trackbacks/90567.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 1								此struts的配置文件的编写				  2										struts				-				config.xml				  3																								  4																		&lt;?				xml version				=				"				1.0	...&nbsp;&nbsp;<a href='http://www.blogjava.net/louieling/archive/2006/12/28/90567.html'>阅读全文</a><img src ="http://www.blogjava.net/louieling/aggbug/90567.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/louieling/" target="_blank">路易</a> 2006-12-28 19:21 <a href="http://www.blogjava.net/louieling/archive/2006/12/28/90567.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>验证邮箱格式的正则表达式(Struts)－－转自NO.3学习园地</title><link>http://www.blogjava.net/louieling/archive/2006/12/28/90563.html</link><dc:creator>路易</dc:creator><author>路易</author><pubDate>Thu, 28 Dec 2006 10:56:00 GMT</pubDate><guid>http://www.blogjava.net/louieling/archive/2006/12/28/90563.html</guid><wfw:comment>http://www.blogjava.net/louieling/comments/90563.html</wfw:comment><comments>http://www.blogjava.net/louieling/archive/2006/12/28/90563.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/louieling/comments/commentRss/90563.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/louieling/services/trackbacks/90563.html</trackback:ping><description><![CDATA[
		<div class="postbody"> public ActionErrors validate(ActionMapping actionMapping,<br />                                 HttpServletRequest httpServletRequest) {<br />        String style =<br />                "^[a-zA-Z][a-zA-Z0-9._-]*@([a-zA-Z0-9-_]+\\.)+(com|gov|net|com\\.cn|edu\\.cn)$";<br />        Pattern ptt = Pattern.compile(style);<br />        Matcher mch=ptt.matcher(email);<br />        ActionErrors errors = new ActionErrors();<br />        if ((name == null || name.equals(""))) {<br />            ActionError error = new ActionError("error.name");<br />            errors.add("name", error);<br />        } else <br />        if (!mch.matches()) {<br />            ActionError error = new ActionError("error.email");<br />            errors.add("email", error);<br />        }<br />        return errors;<br />    }</div>
<img src ="http://www.blogjava.net/louieling/aggbug/90563.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/louieling/" target="_blank">路易</a> 2006-12-28 18:56 <a href="http://www.blogjava.net/louieling/archive/2006/12/28/90563.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>