Index: lams_central/web/forgotPasswordProc.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/forgotPasswordProc.jsp,v diff -u -r1.1 -r1.2 --- lams_central/web/forgotPasswordProc.jsp 11 Apr 2008 00:28:12 -0000 1.1 +++ lams_central/web/forgotPasswordProc.jsp 11 Apr 2008 06:16:50 -0000 1.2 @@ -3,32 +3,17 @@ <%@page import="org.lamsfoundation.lams.util.MessageService" %> <%@page import="org.springframework.web.context.WebApplicationContext" %> <%@page import="org.springframework.web.context.support.WebApplicationContextUtils" %> +<%@ page import="org.lamsfoundation.lams.util.Configuration" %> +<%@ page import="org.lamsfoundation.lams.util.ConfigurationKeys" %> <%@ taglib uri="tags-html" prefix="html" %> <%@ taglib uri="tags-logic" prefix="logic" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> <%@ taglib uri="tags-lams" prefix="lams" %> <% - -String message=""; - +String languageKey = request.getParameter("languageKey"); String stateStr = request.getParameter("state"); -int state = Integer.parseInt(stateStr); - -WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this.getServletContext()); -MessageService messageService = (MessageService)ctx.getBean("centralMessageService"); - -switch (state) -{ -case 100: message = "" + messageService.getMessage("error.support.email.not.set") + ""; break; -case 101: message = "" + messageService.getMessage("error.email.does.not.match") + ""; break; -case 102: message = "" + messageService.getMessage("error.user.not.found") + ""; break; -case 103: message = "" + messageService.getMessage("error.password.request.expired") + ""; break; -case 104: message = messageService.getMessage("forgot.password.email.sent"); break; -case 105: message = messageService.getMessage("heading.password.changed.screen"); break; -} - %> @@ -39,25 +24,43 @@ <fmt:message key="title.forgot.password"/> + + - - -
-
-
-
-

-
-
- <%=message %> -

- +
+ + +

+ +
+
+
+ <%if (stateStr.equals("0")){out.print("");}%> + + <%if (stateStr.equals("0")){out.print("");}%> +
+

+ +
+ + -
\ No newline at end of file