Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] customize logon page...

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] customize logon page...
 Login/Join
 
<Shane>
posted
Has anyone successfully changed the default WORP_logon.jsp page that did not run from the WAR file? I've tried to customize ours and it's not working very well. I'd like to change the banner across the top of the page, change the font, etc.

Shane

This message has been edited. Last edited by: Kerry,
 
Report This Post
Virtuoso
posted Hide Post
Why not just change the WORP_Login that is there and keep it as part of the web app? I might be a bit of a pain, but there appears to be some session stuff that is initialized by the time the login page is provided. I've always had a bit of a problem (in 7x at least) when trying to manipulate a custom logon without invalidating an existing session first. As you know, you cannot invalidate a session unless it is part of the same web app.

I you want to remove the logon from the web app, I would suggest you build a custom JSP that is part of the web app, and build a custom login that calls the JSP. Then I have complete control of the session and you can customize the logon to your hearts content.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Expert
posted Hide Post
Shane,
I've totally customized the mre and caster logon pages. In 5, you had to unjar the war files, but in 7 , as Clouseau says, 'notanymore'..
Editing the components directly , confusing to trace the bits as it is, works fine. I gave a talk on it at New England Summit, nobody much cared, but i think this is great fun to do.
I say this only to offer encouragement. I've not tackled WORP.. hey, i haven't even looked for it yet!




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
<Shane>
posted
Susannah,

Since you spoke on this at a Summit, could you send me your presentation. I'm not having much luck with this at all. Apparently I have to remove some JSP code to make it not load the default banner.

Shane
 
Report This Post
Guru
posted Hide Post
Susannah - you're session at the New England FUN Conference was awesome for those of use who attended it! For those that didn't, they missed a great session. Wink I loved the babies across your ReportCaster screen!



WebFOCUS 7.6.6/TomCat/Win2k3
 
Posts: 428 | Location: Springfield, MA | Registered: May 07, 2003Report This Post
<Shane>
posted
All:

Since we weren't using the WAR file, we had to change the WORP_login.jsp page in the \ibi\WebFOCUS76\webapps\webfocus76\worp\jsp folder.

Here's how we got it to work:

<%-- $Revision: 1.76.4.2.6.2 $: --%>
<%@ page language="java" contentType="text/html" session="false"%>

<%@ page import="ibi.srv.nls.NlsSrv"%>
<%@ page import="ibi.worp.cgi.WORP_CGIUtilInterface"%>
<%@ page import="ibi.worp.custom.WORP_VBFU"%>
<%@ page import="ibi.worp.common.util.WORP_RuntimeUtil"%>
<%@ page import="ibi.worp.util.WORP_Utilities"%>
<%@ page import="ibi.worp.util.WORP_AssetsManager"%>
<%@ page import="ibi.worp.util.spi.WORP_LoginBean"%>
<%@ page import="ibi.worp.util.WORP_DBTxtVarsInterface"%>
<%@ page import="ibi.worp.util.WORP_Exception"%>
<%@ page import="ibi.worp.common.shareddata.WORP_InitParameters"%>

<%@ taglib uri="pageinfo" prefix="pageinfo"%>
<%@ taglib uri="control" prefix="control"%>
<%@ taglib uri="bidtoolbar" prefix="toolbar"%>

<jsp:useBean id="ibiLoginBean" scope="request" type="ibi.client.web.beans.login.IBILoginBean"/>

<%
	WORP_Exception worpException = (WORP_Exception)request.getAttribute("worpException");
	boolean isI5 = WORP_InitParameters.isI5ReporterMode();

  final String WORP_PERSON_CSS_SRC = WORP_AssetsManager.getAssetHREF("css", "worp_person.css", request.getContextPath());
  final String IBI_HTML = pageContext.getServletContext().getInitParameter("FOCHTMLURL");
  final String PAGE_CSS = IBI_HTML + "/homepage/homepagestyle.css";
  final String IBI_GBL_JS_SRC = WORP_AssetsManager.getAssetHREF("ibi-js", "ibigbl.js", request.getContextPath());
  final String NLS_SELECT_JS_SRC = WORP_AssetsManager.getAssetHREF("nls-js", "nlsselect.js", request.getContextPath());
  final String IBI_HASH_JS_SRC = WORP_AssetsManager.getAssetHREF("ibi-js", "ibihash.js", request.getContextPath());
  final String IBI_MULTI_LANGUAGE_JS_SRC = WORP_AssetsManager.getAssetHREF("intl-js", "ibimultilanguage.js", request.getContextPath());
  final String WORP_BANNER_JS_SRC = WORP_AssetsManager.getAssetHREF("js", "worp_banner.js", request.getContextPath());
  final String WORP_RUNTIME_JS_SRC = WORP_AssetsManager.getAssetHREF("js-util", "worp_runtime.js", request.getContextPath());
  final String WORP_QUERY_HANDLER_JS_SRC = WORP_AssetsManager.getAssetHREF("js-util", "worp_query-handler.js", request.getContextPath());
  final String POWERED_IMG_SRC = WORP_AssetsManager.getAssetHREF("img_logos", "powered.gif", request.getContextPath());
  final String JSP_MAPPING = WORP_AssetsManager.getAssetMapping("jsp", request.getContextPath());
  final String CHANGE_PASSWORD_HREF_SRC = WORP_AssetsManager.getAssetHREF("jsp", "WORP_PassChange.jsp", request.getContextPath());
   
  	boolean gotoPersonalize = new Boolean(request.getParameter(WORP_CGIUtilInterface.WORP_GOTO_PERSONALIZE)).booleanValue();
  String worpRequestType = request.getParameter(WORP_CGIUtilInterface.WORP_REQUEST_TYPE) == null || gotoPersonalize ? WORP_CGIUtilInterface.WORP_LOGIN : request.getParameter(WORP_CGIUtilInterface.WORP_REQUEST_TYPE);
  String mpv = request.getParameter(WORP_CGIUtilInterface.WORP_MPV);
  String language = ibiLoginBean.getLanguage();
  String groupName = request.getParameter(WORP_CGIUtilInterface.GROUP_NAME);
  if(WORP_RuntimeUtil.isNull(groupName) || groupName.equals("null")){
    groupName = null;
  }

  String toolbarTextBundleKey = WORP_DBTxtVarsInterface.LOGIN_LABEL;
  
  String sTitle = isI5 ? WORP_Utilities.getDBVar(language, "I5_DBTitle") : WORP_Utilities.getDBVar(language, WORP_DBTxtVarsInterface.DB_TITLE);
  
  boolean managementStandalone = request.getParameter("managementStandalone") != null;
  
  String actionHandler = WORP_AssetsManager.getServletURL(request, response);
  
  String loginCSS = null;
  String loginCSSClass = "default";
  String login_mpv = isI5 ? "public" : request.getParameter(WORP_CGIUtilInterface.LOGIN_MPV);
  if(!WORP_RuntimeUtil.isNull(login_mpv) && !login_mpv.equals("null")){
    loginCSS = WORP_AssetsManager.getCustomAssetHREF("cust-css", login_mpv, "content.css", request.getContextPath());
    loginCSSClass = "content";
  }
	
  if(managementStandalone){
	  loginCSSClass += " bgcontent";
	  sTitle = WORP_Utilities.getDBVar(language, "sWebFocusCMTitle");
  }

  /* //  713
  if(worpRequestType.equalsIgnoreCase(WORP_CGIUtilInterface.WORP_LOGIN)) {
    WORP_VBFU.setPageTitle(sbPageHeader, WORP_Utilities.getDBVar(language, WORP_DBTxtVarsInterface.LOGIN_LABEL), WORP_Utilities.getDBVar(language, WORP_DBTxtVarsInterface.HELP), language);
  }
  else if(worpRequestType.equalsIgnoreCase(WORP_CGIUtilInterface.WORP_GBV_VERIFY)) {
    WORP_VBFU.setPageTitle(sbPageHeader, WORP_Utilities.getDBVar(language, WORP_DBTxtVarsInterface.GBV_VERIFY_LABEL), WORP_Utilities.getDBVar(language, WORP_DBTxtVarsInterface.HELP), language);
  }
  else if(worpRequestType.equalsIgnoreCase(WORP_CGIUtilInterface.WORP_CUSTOMIZE_VERIFY)) {
    WORP_VBFU.setPageTitle(sbPageHeader, sLoginLabel, WORP_Utilities.getDBVar(language, WORP_DBTxtVarsInterface.HELP), language);
  }
  */
  
  if(worpRequestType.equalsIgnoreCase(WORP_CGIUtilInterface.WORP_GBV_VERIFY)) {
    groupName = request.getParameter("groupName");
    toolbarTextBundleKey = WORP_DBTxtVarsInterface.GBV_VERIFY_LABEL;
  }
  else if(worpRequestType.equalsIgnoreCase(WORP_CGIUtilInterface.WORP_CUSTOMIZE_VERIFY)) {
  
  	if(managementStandalone)
      toolbarTextBundleKey = WORP_Utilities.getDBVar(language, "sBIDCMLogin");
    else
      toolbarTextBundleKey = WORP_DBTxtVarsInterface.VBLOGIN_LABEL;
  }
  
  String sbChangePass = WORP_VBFU.makeLoginButton(WORP_Utilities.getDBVar(language, "passchangeHREFTextShort"), "javascript:document.location='" + CHANGE_PASSWORD_HREF_SRC + "';");
  String sbSubmit = WORP_VBFU.makeLoginButton(WORP_Utilities.getDBVar(language, "sLogon"), "javascript:document.forms[0].submit();");
  String sbReset = WORP_VBFU.makeLoginButton(WORP_Utilities.getDBVar(language, WORP_DBTxtVarsInterface.RESET_BUTTON), "javascript:document.forms[0].reset();javascript:focusPrimaryField();");
  String header = isI5 ? "I5_MRELoginLabel" : WORP_DBTxtVarsInterface.MRE_LOGIN_LABEL;
  NlsSrv.jspinit(language, response);
	
%>

<pageinfo:info>

<html>
  <head>

<!--	<TITLE><%=sTitle%></TITLE>  -->
<title>Business Intelligence Dashboard Login</title>

    <%=ibi.srv.nls.NlsSrv.createContentMetaTag( request )%>
    
    <control:conditional condition="<%=managementStandalone%>">
      <link rel="stylesheet" type="text/css" href="<%=PAGE_CSS%>">
    </control:conditional>
    
    <link rel="stylesheet" type="text/css" href="<%=WORP_PERSON_CSS_SRC%>">
    
    <control:conditional condition="<%=(loginCSS != null)%>">
      <link rel="stylesheet" type="text/css" href="<%=loginCSS%>">
    </control:conditional>
    
    <script language="JavaScript" type="text/JavaScript">
      var ibiOptions = new Array("ibilangtrans");
    </script>
    <script language="JavaScript" type="text/JavaScript" src="<%=IBI_MULTI_LANGUAGE_JS_SRC%>"></script>
    <script language="JavaScript" type="text/JavaScript" src="<%=NLS_SELECT_JS_SRC%>"></script>
    <script language="JavaScript" type="text/JavaScript" src="<%=IBI_HASH_JS_SRC%>"></script>
    <script language="JavaScript" type="text/JavaScript" src="<%=IBI_GBL_JS_SRC%>"></script>
    <script language="JavaScript" type="text/JavaScript" src="<%=WORP_BANNER_JS_SRC%>"></script>
    <script language="JavaScript" type="text/JavaScript" src="<%=WORP_RUNTIME_JS_SRC%>"></script>
    <script language="JavaScript" type="text/JavaScript" src="<%=WORP_QUERY_HANDLER_JS_SRC%>"></script>
    <script language="JavaScript" type="text/JavaScript">
      var isManualAuthentication = <%=ibiLoginBean.getAuthenticationOption().isManualAuthentication()%>;
      var isTrustedAuthentication = <%=ibiLoginBean.getAuthenticationOption().isTrustedAuthentication()%>;
      document.NOIBILangTrans = "NOIBILangTrans";
      addIntlTranslatedJS("worptrans.js");
      ibigblloadCss(null);
      function pageLoaded() {
        if(isTrustedAuthentication) {
          // authentication is done via WS, submit login form
          doSubmit();
        }
        else {
          // authentication is done maunally, login page is rendered
          init_win_obj();
          load_win_obj();
          setJspMapping("<%=JSP_MAPPING%>");
          ibigblOnLoad();
          focusPrimaryField();
        }
      }
      function ibilangtransonload() {
        ibigblInitInfo.translateFromTable();
      }
      function doSubmit() {
        document.userform.submit();
      }
      function checkEvent(event){
        if(event.keyCode == "13") {
          doSubmit();
        }
        return false;
      }
      function focusPrimaryField() {
        document.userform.<%=WORP_CGIUtilInterface.WORP_USER%>.focus();
      }
    </script>
  </head>

  <body bgcolor="#fcfbff" class="<%=loginCSSClass%>" onload="javascript:pageLoaded();" TOPMARGIN=0 LEFTMARGIN=0 MARGINHEIGHT=0 MARGINWIDTH=0>

    <form action="<%=actionHandler%>" method="post" name="userform">
      <input type="hidden" name="<%=WORP_CGIUtilInterface.IBIWF_LANGUAGE%>" value="<%=language%>">
      <control:conditional condition="<%=(mpv != null)%>">
      <input type="hidden" name="<%=WORP_CGIUtilInterface.WORP_MPV%>" value="<%=mpv%>">
      </control:conditional>
      <control:conditional condition="<%=(groupName != null)%>">
        <input type="hidden" name="<%=WORP_CGIUtilInterface.GROUP_NAME%>" value="<%=groupName%>">
      </control:conditional>
      <control:conditional condition="<%=(login_mpv != null)%>">
        <input type="hidden" name="<%=WORP_CGIUtilInterface.LOGIN_MPV%>" value="<%=login_mpv%>">
      </control:conditional>
      <input type="hidden" name="<%=WORP_CGIUtilInterface.WORP_REQUEST_TYPE%>" value="<%=worpRequestType%>">
      <control:conditional condition="<%=(ibiLoginBean.getAuthenticationOption().isManualAuthentication())%>">
      <img border="0" hspace="0" src="/ibi_html/javaassist/banner_01.gif">
<!--  <%if (!isI5) {%>
        <toolbar:helpToolbar language="<%=language%>" toolbarTextBundleKey="<%=toolbarTextBundleKey%>"/>
      <%} else {%>
      	 <table border='0' width='100%' cellpadding='2' class='title' style="background-color:#000000;color:#ffffff;">
		 	<tr><td align='left'> <%=WORP_Utilities.getDBVar(language, WORP_DBTxtVarsInterface.I5_LOGIN_LABEL)%></td></tr>
		 </table>
      <%} %>  -->
        
        <% if (worpException != null) { 
          worpException.setLanguage( language );
        %>
        	<h4 class="error"><%=worpException.getLocalizedMessage() %></h4>
        <% } %>
        <center>
        <table width="*" cellpadding="0" cellspacing=15>
          <tr>
            <td class="login2"></td>
            <td></td>
            <td><div id="ibidropmenu"></div></td>
          </tr>
<!--      <tr>
            <td class="login2" align="left" nowrap><%=WORP_Utilities.getDBVar(language, header)%></td>
          </tr> -->
          <tr>
            <td class="login2" align="center" nowrap>Business Intelligence Dashboard Logon</td>
          </tr>
        </table>
	<table width="*" cellpadding="0" cellspacing=15>
          <tr>
            <td class="login3" align="right" nowrap><%=WORP_Utilities.getDBVar(language, WORP_DBTxtVarsInterface.USER_ID_LABEL)%> </td>
            <td><input maxlength="256" autocomplete='off' name="<%=WORP_CGIUtilInterface.WORP_USER%>" size="20" value="" onkeypress="javascript:checkEvent(event);" style="width:150px;"></td>
          </tr>
          <tr>
            <td class="login3" align="right" nowrap><%=WORP_Utilities.getDBVar(language, WORP_DBTxtVarsInterface.PASSWORD_LABEL)%> </td>
            <td><input maxLength="256" autocomplete='off' name="<%=WORP_CGIUtilInterface.WORP_PASS%>" type="password" value="" size="20" onkeypress="javascript:checkEvent(event);" style="width:150px;"></td>
            <control:conditional condition="<%=(ibiLoginBean.getAuthenticationOption().isUserAllowedToUpdateCredentials() && !isI5)%>">
              <td><%=sbChangePass%></td>
            </control:conditional>
          </tr>
          <control:conditional condition="<%=(ibiLoginBean.getAdditionalBasedirItems() != null)%>">
            <tr>
              <td class="login3" align="right" nowrap><%=WORP_Utilities.getDBVar(language, WORP_DBTxtVarsInterface.SELECT_BASEDIR_LABEL)%>: </td>
              <td>
                <select name="<%=WORP_CGIUtilInterface.MR_BASE_DIR%>" style="width:150px;">
                  <control:iterator id="basedirItem" collection="<%=ibiLoginBean.getAdditionalBasedirItems()%>">
                    <jsp:useBean id="basedirItem" scope="page" type="ibi.client.web.common.util.IBIBasedirVO"/>
                    <option value="<%=basedirItem.getBasedirPath()%>"><%=basedirItem.getBasedirDescription()%></option>
                  </control:iterator>
                </select>
              </td>
            </tr>
          </control:conditional>
          <tr>
            <td class="login2"></td>
            <td align="center">
              <table cellspacing=10>
                <tr>
                  <td><%=sbSubmit%></td>
                  <td><%=sbReset%></td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
        </center>
<!--    <a href="http://www.google.com" target="_new">
          <img border="0" hspace="0" alt="<%=WORP_Utilities.getDBVar(language, WORP_DBTxtVarsInterface.POWERED_LABEL)%>" src="<%=POWERED_IMG_SRC%>">
        </a> -->
        <hr>
      </control:conditional>
        <control:conditional condition="<%=managementStandalone%>">
              <input type="hidden" name="managementStandalone" value="true">
        </control:conditional>
        <control:conditional condition="<%=gotoPersonalize%>"> 
        	<input type="hidden" name="<%=WORP_CGIUtilInterface.WORP_GOTO_PERSONALIZE%>" value="true"/>
        </control:conditional>  
    </form>
  </body>
</html>
</pageinfo:info>

Shane
 
Report This Post
Silver Member
posted Hide Post
quote:
susannah


susannah,

I am very much interested in this topic.

Can you please send the link to the presentation you gave?

Thanks,
Amarnath


WebFOCUS 7.6.7
Unix
Excel/Html
 
Posts: 46 | Registered: January 27, 2009Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] customize logon page...

Copyright © 1996-2020 Information Builders