资源简介

Javaweb+Oracle实现的高校管理系统,数据库部分由Oracle存储过程完成.

资源截图

代码片段和文件信息

package action;

import java.util.*;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;


public class I18nTestAction extends ActionSupport{
/**
 * 
 */
private static final long serialVersionUID = 1L;
private String language;
/*省略getter和setter*/

    public Locale getLocale() {
        Locale l = (Locale) ActionContext.getContext().getSession().get(“locale“);
        return (l == null) ? Locale.getDefault() : l;
    }
public String getLanguage() {
return language;
}
public void setLanguage(String language) {
this.language = language;
}
public String execute(){
if(language==null){         //使用默认locale
return SUCCESS;
}
if(language.equals(“en“)){    //设置locale为Locale.US
 ActionContext.getContext().getSession().put(“locale“ Locale.US);
 }
if(language.equals(“zh“)){    //设置locale为Locale.CHINA
ActionContext.getContext().getSession().put(“locale“ Locale.CHINA);
}
return SUCCESS;
}
}




 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-05-28 12:04  GXGL\
     文件        1484  2011-05-28 22:24  GXGL\.classpath
     目录           0  2011-05-16 13:18  GXGL\.myeclipse\
     文件         286  2011-05-24 08:35  GXGL\.mymetadata
     文件         240  2011-05-16 13:18  GXGL\.mystrutsdata
     文件        1493  2011-05-24 08:34  GXGL\.project
     目录           0  2011-05-24 08:35  GXGL\.settings\
     文件         500  2011-05-16 13:18  GXGL\.settings\.jsdtscope
     文件        1040  2011-05-24 08:35  GXGL\.settings\com.genuitec.eclipse.j2eedt.core.prefs
     文件         330  2011-05-16 13:18  GXGL\.settings\org.eclipse.jdt.core.prefs
     文件          49  2011-05-16 13:18  GXGL\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2011-05-16 13:18  GXGL\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2011-05-28 12:04  GXGL\procedure\
     目录           0  2011-05-28 12:04  GXGL\procedure\AdminDAO\
     文件         294  2011-05-26 23:45  GXGL\procedure\AdminDAO\getAdminByname.txt
     文件         230  2011-05-28 17:47  GXGL\procedure\AdminDAO\updatenew.txt
     目录           0  2011-05-28 12:04  GXGL\procedure\ApiStuDAO\
     文件         457  2011-05-27 07:08  GXGL\procedure\ApiStuDAO\addstu.txt
     文件         124  2011-05-28 17:30  GXGL\procedure\ApiStuDAO\DeleteApiStu.txt
     文件         493  2011-05-28 18:27  GXGL\procedure\ApiStuDAO\getApistu.txt
     文件         634  2011-05-28 18:07  GXGL\procedure\ApiStuDAO\getApistus.txt
     文件         539  2011-05-28 23:14  GXGL\procedure\ApiStuDAO\getByaddress.txt
     文件         541  2011-05-27 09:37  GXGL\procedure\ApiStuDAO\getByposition.txt
     文件         527  2011-05-28 23:12  GXGL\procedure\ApiStuDAO\getByString.txt
     文件         127  2011-05-27 08:47  GXGL\procedure\ApiStuDAO\getTotal.txt
     文件         549  2011-05-28 17:49  GXGL\procedure\ApiStuDAO\updateapistu.txt
     文件         177  2011-05-28 17:51  GXGL\procedure\ApiStuDAO\updatemima.txt
     文件         172  2011-05-28 17:52  GXGL\procedure\ApiStuDAO\updatetouxiang.txt
     目录           0  2011-05-28 12:04  GXGL\procedure\CourseDAO\
     文件         311  2011-05-27 10:17  GXGL\procedure\CourseDAO\createcourse.txt
     文件         138  2011-05-28 17:53  GXGL\procedure\CourseDAO\DeleteCourse.txt
............此处省略1070个文件信息

评论

共有 条评论