- public String getSuccessPath(Form f) {
- CertificateOwner res = ((FindUserByDomainForm) f).getRes();
- if (res instanceof User) {
- return SupportUserDetailsPage.PATH + res.getId() + "/";
- } else if (res instanceof Organisation) {
- return "/support/domain/" + res.getId();
- } else {
- throw new Error("Unknown owner type.");
- }
+ public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
+ new FindUserByDomainForm(req).output(resp.getWriter(), Page.getLanguage(req), new HashMap<String, Object>());