@@ -0,0 +1,965 @@
+/**%0A * Created on 2008-6-21 %E4%B8%8A%E5%8D%8806:53:10%0A */%0Apackage cn.net.openid.jos.web.controller;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0Aimport org.apache.commons.lang.StringUtils;%0Aimport org.springframework.web.servlet.ModelAndView;%0A%0Aimport cn.net.openid.jos.web.AbstractJosController;%0A%0A/**%0A * @author Sutra Zhou%0A * %0A */%0Apublic class SetPrimaryEmailController extends AbstractJosController %7B%0A%0A%09/*%0A%09 * (non-Javadoc)%0A%09 * %0A%09 * @see org.springframework.web.servlet.mvc.Controller#handleRequest(javax.servlet.http.HttpServletRequest,%0A%09 *      javax.servlet.http.HttpServletResponse)%0A%09 */%0A%09public ModelAndView handleRequest(HttpServletRequest request,%0A%09%09%09HttpServletResponse response) throws Exception %7B%0A%09%09String id = request.getParameter(%22id%22);%0A%09%09if (!StringUtils.isEmpty(id)) %7B%0A%09%09%09josService.setPrimaryEmail(getUser(request), id);%0A%09%09%7D%0A%09%09request.getRequestDispatcher(%22/email%22).forward(request, response);%0A%09%09return null;%0A%09%7D%0A%0A%7D%0A

Add support: set primary email address.