struts和spring发送mail的问题
电脑知识爱好者互联网2007-6-21 19:35:29
知识重点:我使用struts和springjavamail发送邮件时为什么applicationcontext对象找不到发送邮件的xml文件的路径了?调用的action:public ActionForward send(ActionMapping mapping, ActionForm form, H..
我使用struts和springjavamail发送邮件时为什么applicationcontext对象找不到发送邮件的xml文件的路径了?
调用的action:
public ActionForward send(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
{
try
{
ComplexMessageSender.mailDo();
}
发送的类:
public static void mailDo() throws Exception {
// TODO Auto-generated method stub
ApplicationContext ctx = new FileSystemXmlApplicationContext(new String[]{"/WebRoot/WEB-INF/ComplexMailSender.xml"});
ComplexMessageSender sender = (ComplexMessageSender)ctx.getBean("messageSender");
发送mail的xml文件的存放位置是:http://lh6.google.com/image/aning21/Rmy2sZbsWGI/AAAAAAAAAF8/TplOPDcVRhg/jmailxml.jpg
请问要如何解决?
回答列表
- 重新设定参数。
- 设定那个参数了?
- 相关内容
- 最近更新
- ·如何学好C语言啊!
- ·OUTLOOK设置
- ·转化Mjpeg的格式
- ·什么软件能够打开*.art文件
- ·.iso文件怎么刻录
- ·在Excel 表格里做一个小型计算器
- ·AUTO CAD 2004软件
- ·我用矮人DOS工具克隆硬盘
- ·srs wow 最佳设置
- ·现在什么杀毒软件最好用,
添加到百度搜藏