فهرست منبع

gitee.com提交

KeYuan 8 سال پیش
والد
کامیت
c3bbf01c73

+ 1 - 1
README.md

@@ -78,7 +78,7 @@ conf/application.properties
 
 github: https://github.com/wkeyuan/DWSurvey
 
-oschina: http://git.oschina.net/wkeyuan/DWSurvey
+oschina: http://gitee.com/wkeyuan/DWSurvey
 
 ## 开源协议
 

+ 7 - 1
src/main/java/com/key/dwsurvey/action/UserAction.java

@@ -22,9 +22,10 @@ import com.opensymphony.xwork2.ActionSupport;
 @InterceptorRefs({ @InterceptorRef("paramsPrepareParamsStack")})
 @Results({
 	@Result(name=UserAction.MYACCOUNT,location="/WEB-INF/page/content/diaowen-center/my-account.jsp",type=Struts2Utils.DISPATCHER),
+		@Result(name="editPwd",location="/WEB-INF/page/content/diaowen-center/resetpwd.jsp",type=Struts2Utils.DISPATCHER),
 		@Result(name=UserAction.SUCCESS,location="user!myaccount.action",type=Struts2Utils.REDIRECT)
 })
-@AllowedMethods({"myaccount"})
+@AllowedMethods({"myaccount","editpwd"})
 public class UserAction extends ActionSupport{
 	
 	public final static String MYACCOUNT="myaccount";
@@ -40,6 +41,11 @@ public class UserAction extends ActionSupport{
 	}
 
 
+	public String editpwd() throws Exception {
+		HttpServletRequest request = Struts2Utils.getRequest();
+		return "editPwd";
+	}
+
 	public String save() throws Exception {
 		HttpServletRequest request=Struts2Utils.getRequest();
 		User user=accountManager.getCurUser();

+ 6 - 1
src/main/webapp/WEB-INF/page/content/diaowen-center/my-account.jsp

@@ -7,6 +7,11 @@
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <link href="${ctx }/js/plugs/jquery-ui-1.10.3.custom/css/mycss/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css" />
 <title>我的账号</title>
+	<style type="text/css>">
+		.pwdTd{
+			display: none;
+		}
+	</style>
 <script type="text/javascript">
 	
 $(document).ready(function(){
@@ -63,7 +68,7 @@ $(document).ready(function(){
 									</tr>
 									<tr>
 										<td width="80" align="right">密码</td>
-										<td class="ac-input-td"><a href="">修改密码</a> </td>
+										<td class="ac-input-td"><a href="${ctx}" >修改密码</a> </td>
 									</tr>
 									<tr>
 										<td></td>