资源简介

SSH整合开发,MyElipse下源代码工作区,SQL文件,使用时创建名为morse的数据库,并执行morse.sql,该web应用使用了国际化、拦截器、规则验证等struts功能,实现将英文、中文转译为摩尔斯码点线码和音频码。使用jsp技术,tomcat服务器,mysql数据库。在使用时,请修改applicationContext.xml文件内的username与password的值,改为您使用数据库的用户名和密码

资源截图

代码片段和文件信息

package com.morseToX.bondary;

import com.morseToX.business.bean.ChangeBean;
import com.morseToX.business.bean.RegisterBean;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class ChangeAction extends ActionSupport{

private String username;
private String password;
private ChangeBean changeBean;

public String getPassword(){
return this.password;
}

public void setPassword(String password){
this.password = password;
}

public ChangeBean getChangeBean(){
return this.changeBean;
}

public void setChangeBean(ChangeBean changeBean){
this.changeBean = changeBean;
}

public String execute() throws Exception {
this.username = (String)ActionContext.getContext().getSession().get(“user“);
try{
this.changeBean.Change(this.username this.password);
}catch(Exception ex){
ActionContext.getContext().getSession().put(“error“ this.getText(“userCenter.changeErr“));
return this.ERROR;
}
ActionContext.getContext().getSession().put(“word“ null);
ActionContext.getContext().getSession().put(“error“ null);
return this.SUCCESS;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     目录          0  2011-06-08 21:57  MorseToX3

     文件     102061  2011-06-08 17:34  MorseToX3\morse.sql

     目录          0  2011-06-08 21:57  MorseToX3\MorseToX3

     文件       5704  2011-06-01 12:36  MorseToX3\MorseToX3\.classpath

     文件        601  2011-06-01 17:51  MorseToX3\MorseToX3\.myhibernatedata

     文件        300  2011-06-07 19:51  MorseToX3\MorseToX3\.mymetadata

     文件        240  2011-05-31 22:56  MorseToX3\MorseToX3\.mystrutsdata

     文件       2245  2011-06-07 19:51  MorseToX3\MorseToX3\.project

     目录          0  2011-06-08 21:57  MorseToX3\MorseToX3\.settings

     文件        493  2011-05-31 22:52  MorseToX3\MorseToX3\.settings\.jsdtscope

     文件        395  2011-05-31 22:52  MorseToX3\MorseToX3\.settings\org.eclipse.jdt.core.prefs

     文件        465  2011-05-31 22:52  MorseToX3\MorseToX3\.settings\org.eclipse.wst.common.component

     文件        252  2011-05-31 22:52  MorseToX3\MorseToX3\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2011-05-31 22:52  MorseToX3\MorseToX3\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2011-05-31 22:52  MorseToX3\MorseToX3\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件        474  2011-05-31 22:55  MorseToX3\MorseToX3\.springBeans

     目录          0  2011-06-08 21:57  MorseToX3\MorseToX3\src

     文件       2696  2011-06-08 15:34  MorseToX3\MorseToX3\src\ApplicationResources_en_US.properties

     文件       4332  2011-06-08 15:35  MorseToX3\MorseToX3\src\ApplicationResources_zh_CN.properties

     文件       4332  2011-06-08 15:35  MorseToX3\MorseToX3\src\ApplicationResources_zh_TW.properties

     目录          0  2011-06-08 21:57  MorseToX3\MorseToX3\src\com

     目录          0  2011-06-08 21:57  MorseToX3\MorseToX3\src\com\morseToX

     目录          0  2011-06-08 21:57  MorseToX3\MorseToX3\src\com\morseToX\bondary

     文件       1169  2011-06-08 15:36  MorseToX3\MorseToX3\src\com\morseToX\bondary\ChangeAction.java

     文件       1620  2011-06-08 12:47  MorseToX3\MorseToX3\src\com\morseToX\bondary\ChineseMorseAction.java

     文件       1409  2011-06-08 12:47  MorseToX3\MorseToX3\src\com\morseToX\bondary\ChineseNumberAction.java

     文件       1519  2011-06-08 12:48  MorseToX3\MorseToX3\src\com\morseToX\bondary\ChineseSoundAction.java

     文件       1616  2011-06-08 12:48  MorseToX3\MorseToX3\src\com\morseToX\bondary\EnglishMorseAction.java

     文件       1521  2011-06-08 12:48  MorseToX3\MorseToX3\src\com\morseToX\bondary\EnglishSoundAction.java

     目录          0  2011-06-08 21:57  MorseToX3\MorseToX3\src\com\morseToX\bondary\interceptor

............此处省略215个文件信息

评论

共有 条评论