Source:
<code>public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { IUserSession session = (IUserSession) request.getSession().getAttribute("UserSession"); String id = request.getParameter("id"); String userName = request.getParameter("account"); String password = request.getParameter("passwd"); String email = request.getParameter("mail"); String nickName = request.getParameter("name"); String enable = request.getParameter("enable"); AccountInfo userInformation = new AccountInfo(); userInformation.id = Long.parseLong(id); userInformation.userName = userName; userInformation.nickName = nickName; userInformation.password = password; userInformation.email = email; userInformation.enable = Boolean.parseBoolean(enable); AccountHelper ah = new AccountHelper(session); AccountObject newAccInfo = ah.updateAccount(userInformation); if ((password == null) || (password.length() == 0) || password.equals("")) { password = newAccInfo.getPassword(); } <START> String userName = session.getAccount().getNickName(); <END> if (userName.equals(id)) { String encodedPassword = new String(Base64.encode(password.getBytes())); request.getSession().setAttribute("passwordForPlugin", encodedPassword); } AccountObject sessionAccount = session.getAccount(); sessionAccount.setNickName(newAccInfo.getNickName()); sessionAccount.setEmail(newAccInfo.getEmail()); sessionAccount.setPassword(newAccInfo.getPassword()); try { response.setContentType("text/xml; charset=utf-8"); response.getWriter().write(ah.getAccountXML(newAccInfo)); response.getWriter().close(); } catch (IOException e) { System.out.println("class : UpdateAccountAction, method : execute, exception : " + e.toString()); e.printStackTrace(); } return null; }</code><technical_language>String nickName</technical_language>

Target:
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { IUserSession session = (IUserSession) request.getSession().getAttribute("UserSession"); String id = request.getParameter("id"); String userName = request.getParameter("account"); String password = request.getParameter("passwd"); String email = request.getParameter("mail"); String nickName = request.getParameter("name"); String enable = request.getParameter("enable"); AccountInfo userInformation = new AccountInfo(); userInformation.id = Long.parseLong(id); userInformation.userName = userName; userInformation.nickName = nickName; userInformation.password = password; userInformation.email = email; userInformation.enable = Boolean.parseBoolean(enable); AccountHelper ah = new AccountHelper(session); AccountObject newAccInfo = ah.updateAccount(userInformation); if ((password == null) || (password.length() == 0) || password.equals("")) { password = newAccInfo.getPassword(); } if (session.getAccount().getUsername().equals(userName)) { String encodedPassword = new String(Base64.encode(password.getBytes())); request.getSession().setAttribute("passwordForPlugin", encodedPassword); } AccountObject sessionAccount = session.getAccount(); sessionAccount.setNickName(newAccInfo.getNickName()); sessionAccount.setEmail(newAccInfo.getEmail()); sessionAccount.setPassword(newAccInfo.getPassword()); try { response.setContentType("text/xml; charset=utf-8"); response.getWriter().write(ah.getAccountXML(newAccInfo)); response.getWriter().close(); } catch (IOException e) { System.out.println("class : UpdateAccountAction, method : execute, exception : " + e.toString()); e.printStackTrace(); } return null; }