-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
XueSong
committed
Jun 14, 2014
1 parent
bbfadc9
commit cd20324
Showing
6 changed files
with
45 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.oa.action; | ||
|
||
import javax.annotation.Resource; | ||
|
||
import org.apache.struts2.ServletActionContext; | ||
|
||
import com.oa.model.Person; | ||
import com.oa.model.Users; | ||
import com.oa.service.PersonService; | ||
import com.opensymphony.xwork2.ActionSupport; | ||
|
||
public class PersonalInfoAction extends ActionSupport { | ||
|
||
private static final long serialVersionUID = -2247441234534761377L; | ||
private PersonService personService; | ||
private String returns; | ||
|
||
public String selfModify(){ | ||
Users user=(Users) ServletActionContext.getRequest().getSession().getAttribute("admin"); | ||
System.out.println(user.toString()); | ||
System.out.println("=======+++++====="); | ||
Person person=personService.getPerson(user.getPersonid().getId()); | ||
System.out.println(person.toString()); | ||
ServletActionContext.getRequest().setAttribute("person", person); | ||
returns="JSP/gerenxinxi.jsp"; | ||
|
||
return "modify"; | ||
} | ||
|
||
public PersonService getPersonService() { | ||
return personService; | ||
} | ||
|
||
@Resource | ||
public void setPersonService(PersonService personService) { | ||
this.personService = personService; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
jdbc.driverClassName = com.mysql.jdbc.Driver | ||
jdbc.url = jdbc\:mysql\:https://localhost/myoa | ||
jdbc.username =admin | ||
jdbc.username =root | ||
jdbc.password =mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters