像这个样子,其中error.export.service.sub在资源文件中配置。另外要在struts-config.xml中的action中要配置input的路径,这样就可以了。
ActionErrors errors = new ActionErrors();
try{
}catch(Exception e){
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.export.service.sub"));
} if (!errors.isEmpty()) {
saveErrors(request, errors);
return (mapping.getInputForward());
}
ActionErrors errors = new ActionErrors();
try{
}catch(Exception e){
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.export.service.sub"));
} if (!errors.isEmpty()) {
saveErrors(request, errors);
return (mapping.getInputForward());
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货