[CampusManager] JSP question for ExternalAuthenticationReg.jsp

From: Adam Albina <AAlbina_at_Anselm.Edu>
Date: Mon, 16 Aug 2004 15:30:15 -0400

Many of our students are registering with their username in the
following format:

jsmith_at_anselm.edu

Since this is how they log into their Exchange2003 accounts.

I'd like to strip off the "@anselm.edu" in the web page that calls
ExternalAuthenticationReg.jsp but I'm more familiar with Java than the
browser container and JavaScript.

I think something like the following code change in
ExternalAuthenticationReg.jsp would do the trick:

        String [] myArray = userName.split("\\@"); /*Jave 1.4
specification*/
      If (myArray.length != 0)
      {
        DynamicClient client = campusBean.authenticateRegister(
myArray[0], pw,
        request.getRemoteAddr(), deviceDesc);
        }
        Else
        {
          DynamicClient client = campusBean.authenticateRegister(
userName, pw,
        request.getRemoteAddr(), deviceDesc);
        }

Does anyone know how to do this in Javascript in the register.html page
sample Bradford provides prior to sending the post to the JSP?

If not -- hey Bradford guys -- what do you think of the mod to the JSP?

Adam R. Albina
Director of Information Technology
Saint Anselm College
100 Saint Anselm Drive, P.O. Box 1711
Manchester, NH 03102
aalbina_at_anselm.edu
603.641.7266 603.801.9587(Mobile) 603.641.7288(Fax)
Received on Mon Aug 16 2004 - 19:30:47 EDT

This archive was generated by hypermail 2.2.0 : Tue Jan 06 2009 - 19:00:04 EST