How can you go beyond the basic branding of styles and logos? The 9.2 SAS EBI Web Applications have simplified and streamlined web applications branding , but it is still limited to style sheet type changes.
Here is a basic example of how you can change the Login Page for your SAS 9.2 EBI Web Applications and enable the system to change the login name during authorization. This was originally intended to append the domain onto the end of the user name but it can be tweaked to do just about anything from within the Logon.jsp.
Step 1
Locate your SAS deployed ear files. There are two primary locations of the deployed ear file.
- Within your configuration directory (ex. C:\SAS\EBIserver\Lev1\Web\Staging)
- Within the jboss configuration under sas_deploy (ex. C:\jboss-4.2.3.GA\server\SASServer1\deploy_sas)
Note: Create a copy using of the jboss \deploy_sas ear file before attempting any changes. Never touch the Staging ear file as that should be considered your original and should not be used without careful consideration.
Step 2
Create a copy of the sas.wip.apps9.2.ear this ear file contains the SAS Logon war file.
Step 3
Open the file with you preferred compression software, I have been using IZarc. Note you may need to rename the ear file to war depending on software used.
Step 4
Copy the sas.svcs.logon.war file out to your file system in an easy to find location.
Step 5
Open the sas.svcs.logon.war file your desired compression software, and copy the logon.jsp into the same folder location.
Step 6
Edit the logon.jsp code in a text editor.
Step 7
Insert code to used an external javascript, toware the top of the code.
<script src="http://server.domain.com:8080/appendLdap.js" >
</script>
Note you can embed the javascript directly in the jsp but for testing purposes I kept it as an external reference.
Step 8
Open up the SASPortal Web page, view the pages source and copy the <input type=”submit” id=”logon” > line
Step 9
Edit the source logon.jsp to use the copyied line from above and add an onClick=”appendLdap()”. Editing the source directly ad adding in the onClick does not work becuase the jsp will overwrite the onClick.
Step 10
Create your external javascript and save it in the Root directory of Jboss, or any other accessible web server location.
Step 11
Edit your javascript in a text editor. Below is an example.
Note this javascript checks for the presence of Chicago, pa, tx in the login name, and appends on and @ldap. Update your script to match your needs.
Step 12
Restart Jboss, and make sure to clean out of temp, and work directories to ensure the newly create ear files will be deployed.
After completing Step 12 login to your portal and test the login.











By Tweets that mention Go Beyond Basic Branding Using Login Web Application - Generally Specific -- Topsy.com May 19, 2010 - 5:33 pm
[...] This post was mentioned on Twitter by zencos, Brian McDonald. Brian McDonald said: RT @zencos: New post: Go Beyond Basic Branding Using Login Web Application http://bit.ly/9Ok4Tk [...]