<%@ taglib uri="http://www.entplace.com/taglibs/ep" prefix="ep" %> <%@ page import="com.entplace.data.entities.UserHome" %> <%@ page import="com.entplace.data.entities.User" %> <% String info = form.getValue("info"); boolean found = false; boolean failed = false; boolean byemail = false; User u = null; if (info != null && !"".equals(info)) { try { u = UserHome.getInstance().findByLogin(info); } catch (Exception e) { } if (u == null) { byemail = true; try { u = UserHome.getInstance().findByEmail(info); } catch (Exception e) { } } found = u != null; failed = !found; } %>  
PASSWORD HELPER

<% if (!found) { if (failed) { %>  
"<%= info %>"  not found.
<% } %>  
Enter your username or email address below and we'll send your login information to your registered email address.
 
Username or email:

SUBMIT <% } else { String email = u.getEmail(); %> Your Entrepreneur's Place login credentials are: User: <%= u.getLogin() %> Password: <%= u.getPassword() %> Your password has been sent to your registered email address: <%= email %>.<% } %>