Customizing Identity Manager 7.0
I'm trying to modify the login page for the user login (user/login.jsp)
It is simple to remove the "Forget Your Password" button but how do I go about adding a new button on that page? I would like to code a "Cancel" button there. What file do I modify?
Also, once I've logged in and changed my password, I get to the "changePasswordResults.jsp" screen. It contains a workflow diagram.. how do I get rid of this?
Any help would be appreciated. Thanks,
[478 byte] By [
CHOPRASa] at [2007-11-27 3:58:50]

# 1
Use the form.setSuppressReports(true); statement to hide workflow diagrams.//Following code hides Workflow Process Diagramform.setSuppressReports(true);
# 2
Where do I put that code?
# 3
Hi,Add this code in "changeUserPasswordResults.jsp" under this line of code form.setPostURL(response.encodeURL(pr.popReturnURL("account/list.jsp")));it will hide the workflow diagram in tha page.ThanxShant
# 4
Do I need to restart the server for the change to take effect?Sorry, I'm a java/jsp novice.
# 5
no need to restart it just change the jsp and refresh the page again...
# 6
Unfortunately that didn't work... I even tried with a restart - still no luck.. any ideas?
# 7
can u please copy the code there so that i can check where is the problem.
# 8
<%@ page import="com.waveset.session.Session,
com.waveset.session.UserViewConstants,
com.waveset.ui.util.RequestState,
com.waveset.ui.LoginHelper"
%>
<%@ include file="../includes/headStartUser.jsp" %>
<jsp:useBean id="form" scope="page"
class="com.waveset.ui.web.common.ResultsPage"/>
<%
String pageTitle = req.getLocalizedString("UI_CHANGE_PASSWORD_RESULTS", _locale);
String bodyAttributes = "";
try {
form.setTitle(pageTitle);
form.setPostURL(response.encodeURL("user/main.jsp"));
form.setSuppressReports(true);
form.setNextURL("user/main.jsp");
String url = form.process(req);
if ( url != null ) {
LoginHelper.redirect(req, out, url);
return;
}
}
catch (Throwable th) {
form.addError(th.getLocalizedMessage());
%><%= com.waveset.util.Util.stackToHtmlComment(th) %><%
}
%>
<%@ include file="userHeader.jsp" %>
<%= form.generateHTML() %>
<%@ include file="userFooter.jsp" %>
<%@ include file="../includes/poolSession.jsp" %>
# 9
I ran a little test and realized that the code is not used. Do I need to redeploy the war file?
# 10
It worked!!!Thanks - I had changed it in the wrong place (location)
# 11
How do I remove the table on the same page (user/changePasswordResults)? It has 3 columns - attribute, value & status...
# 12
Hi
Use this jsp i have add code in it and one more thing on which application server you are using if weblogic or jboss then yes u have to restart the server also.
<%@ page import="com.waveset.session.Session,
com.waveset.session.UserViewConstants,
com.waveset.ui.util.RequestState,
com.waveset.ui.LoginHelper"
%>
<%@ include file="../includes/headStartUser.jsp" %>
<jsp:useBean id="form" scope="page"
class="com.waveset.ui.web.common.ResultsPage"/>
<%
String pageTitle = req.getLocalizedString("UI_CHANGE_PASSWORD_RESULTS", _locale);
String bodyAttributes = "";
try {
form.setTitle(pageTitle);
form.setPostURL(response.encodeURL("user/main.jsp"));
form.setSuppressReports(true);
form.setNextURL("user/main.jsp");
form.setSuppressReports(true);
String url = form.process(req);
if ( url != null ) {
LoginHelper.redirect(req, out, url);
return;
}
}
catch (Throwable th) {
form.addError(th.getLocalizedMessage());
%><%= com.waveset.util.Util.stackToHtmlComment(th) %><%
}
%>
<%@ include file="userHeader.jsp" %>
<%= form.generateHTML() %>
<%@ include file="userFooter.jsp" %>
<%@ include file="../includes/poolSession.jsp" %>
Thanx
Shant
# 13
I have been able to hide the workflow diagrams - thanks.I need to now get rid of tables that appears in the user/changePassword.jsp file and user/changePasswordResults.jsp file.Any help would be appreciated.
# 14
I know you need to modify a coupe forms.... I can't seem to find the table definitions though. PLease advise.