All I have ever had to do to make a custom login.jsp (currently mid-tier
7.1.00.002 on Tomcat 5.5.26 on Win2K3 Ent x64) is rename the OOTB files
and add the custom ones with the original name in the same location,
then flush the mid-tier cache (it's persistent) and restart Tomcat.  I
even leave the original files with the custom ones in the
\Mid-Tier\shared directory, but make copies elsewhere since they are not
retained when you run a mid-tier upgrade installer.

C:\Program Files (x86)\AR System\Mid-Tier\shared\
login_common.jsp
login.jsp
login_common.OOTB.jsp
login.OOTB.jsp
file_not_found.jsp
etc.,

Tomcat is the web server as well as the application server (for
performance), so there aren't any other moving parts involved.  Maybe
you are hitting something like this problem
(http://support.microsoft.com/kb/832139) in the IIS cache, which is
managed separately.


My edits were only these (for anyone who needs to do this and has not
tried it yet):

In login_common.jsp:

// UNT Customizations applied here
   String login_img = "images/login_image.jpg";
//   String logo_img = "images/login_logo.gif";
   String logo_img = "images/UNTSystem_small.jpg";
//   String iframeurl = null;
   String iframeurl = "images/warning_plain.htm";

...which changes the logo and the html to be displayed in the optional
iframe

I also tinkered with some font sizes and added a new style for the login
instructions:
        .notice {font: 11px "Tahoma", "Lucida Grande", "Verdana",
"Arial", "Helvetica", sans-serif; color: #e8e8e1; line-height: 12px;
margin-bottom: 4px;}


In login.jsp:
Change the logo alt tag and dimensions:

        <img src="<%=logo_img%>" alt="UNT System logo" border="0"> 

Change the login instructions:
        <td class="login" colspan="2" nowrap="nowrap">
        <p
class="subhead"><%=MessageTranslation.getLocalizedText(locale,"Please
log in using your Support Staff Login Name.")%></p>
        <p
class="notice"><%=MessageTranslation.getLocalizedText(locale,"(Logging
in with your EUID provides access only to Approval Central)")%></p>

Kill off the Authentication String prompt:

<!--    <tr>
                <td class="Login" nowrap="nowrap" width="20">&nbsp;</td>
                <td class="Login" name="auth_label" nowrap="nowrap">
                        <label
for="auth-id"><%=MessageTranslation.getLocalizedText(locale,"Authenticat
ion")%></label>
                </td>
                <td><input type="text"
NAME="<%=Params.AUTHENTICATION_STRING%>" id="auth-id"
maxlength="<%=Params.AUTHENTICATION_STRING_LENGTH%>" class="loginfield"
size="30"></td>
</tr> -->

It's not that different from modifying the login.jsp in mid-tier 5.1.2,
except that in THAT system you had to remove the original login.jsp from
the application resource, then add the new one, then redeploy the
application. This seems easier on 7.1 unless I am missing something.

Christopher Strauss, Ph.D.
Call Tracking Administration Manager
University of North Texas Computing & IT Center
http://itsm.unt.edu/ 

> -----Original Message-----
> From: Action Request System discussion list(ARSList) 
> [mailto:[EMAIL PROTECTED] On Behalf Of Dwayne Martin
> Sent: Thursday, April 17, 2008 6:55 AM
> To: [email protected]
> Subject: Re: "login.jsp" caching
> 
> JT,
> 
> Thanks for the suggestion.  Following the advice of our web 
> server administrator I simply rebooted the machine (which 
> would have stopped and restarted Tomcat).  But I still see 
> the original login.jsp page.  Just to be sure, I cleared the 
> Mid-Tier cache and my own local cache and rebooted it again, 
> but no luck.
> 
> I also checked, and the login.jsp page in the "Shared" 
> directory is my customized page, not the one I am seeing.
> 
> Thanks again,
> Dwayne
> 
> ***
> From:         "J.T. Shyman" <[EMAIL PROTECTED]>
> Subject:      Re: "login.jsp" caching
> In-Reply-To:  <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="US-ASCII"
> 
> Have you tried restarting Tomcat when you want to change 
> which page is shown? I wonder if Tomcat is caching the page. 
> I don't think IIS does that but I could be wrong. (been a 
> while since I was a web admin) --- J.T. Shyman 
> 
> -----Original Message-----
> Dwayne Martin Sent: Wednesday, April 16, 2008 9:00 AM To: 
> [email protected]
> 
>  Subject: Re: "login.jsp" caching Good point. 
> 
> Sorry for not including it. We are on an IIS 6 web server, 
> Windows 2003 machine, Tomcat servlet server. 
> 
> Dwayne 
> 
> ---- Original message ---- >
> Date: Wed, 16 Apr 2008 08:53:07 -0400
> From: "J.T. Shyman" <[EMAIL PROTECTED]>
> Subject: Re: "login.jsp" caching
> 
> Dwayne, what platform and servlet server (i.e. tomcat, new 
> Atlanta, etc...) >are you running?
> 
> --- J.T. Shyman 
> 
> -----Original Message-----
> From: 
> Dwayne Martin
> Wednesday, April 16, 2008 8:50 AM 
> 
> >Subject: "login.jsp" caching
> 
> Dear List, 
> 
> We have a customized "login.jsp" page. Sometimes I want to 
> restore the >original just for testing, so I replace the code 
> (\AR System\Mid-Tier\shared >folder). But I still see the 
> customized web page. I can rename "login.jsp" >so that there 
> is no such page, clear out the cache on my local browser, and 
> >the Mid-Tier cache, but the customized page still appears.
> 
> This morning I don't know what I did differently, but I was 
> finally able to >see the original "login.jsp" page. I found 
> out what I wanted to know, and >then restored our customized 
> page. But now I, and other users as well, >still see the 
> original login page, even tho I've cleared both local and 
> >Mid-Tier cache.
> 
> Does anybody know where Mid-Tier caches its "login.jsp" page 
> and how to >clear it. 
> 
> (Mid-Tier 7.1 patch 2)
> 
> Dwayne Martin
> James Madison University 
> 
> ______________________________________________________________
> _________________
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org 
> Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"
> 
> 

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Reply via email to