Alec's BLOG

Java will win the world

2008年2月27日

html:errors和html:messages

     摘要:
Action 中 :
ActionMessages message = new ActionMessages();
message.add(" 消息句柄 ",new ActionMessage(" 资源文件中 Key 值 ",String 类型描述信息 ));
this.addMessages(request,message);
return ActionForward;  阅读全文

posted @ 2008-02-27 09:54 Alec 阅读(116) | 评论 (0)编辑 收藏

2007年8月11日

Java Mail 最简单的例子

     摘要: import java.io.File;
import java.util.Properties;
import javax.activation.DataHandler;
import javax.activation.FileDataSource;
import javax.activation.MimetypesFileTypeMap;
import javax.mail.Message;
import javax.mail.Multipart;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.URLName;
import javax.mail.interne  阅读全文

posted @ 2007-08-11 22:49 Alec 阅读(366) | 评论 (0)编辑 收藏

列出全部内容  

导航

统计

留言簿

文章分类(1)

文章档案(2)

搜索

最新随笔

最新评论