portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pau...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/services/jsp/tags InfoTag.java
Date Tue, 23 Oct 2001 01:21:43 GMT
paulsp      01/10/22 18:21:43

  Modified:    src/java/org/apache/jetspeed/services/jsp/tags InfoTag.java
  Log:
  Add FirstName, LastName, and Email address to requestInfo
  
  Revision  Changes    Path
  1.5       +15 -0     jakarta-jetspeed/src/java/org/apache/jetspeed/services/jsp/tags/InfoTag.java
  
  Index: InfoTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/jsp/tags/InfoTag.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- InfoTag.java	2001/03/07 06:48:38	1.4
  +++ InfoTag.java	2001/10/23 01:21:43	1.5
  @@ -70,6 +70,7 @@
    * Sends the screens ecs element's content to the output stream.  
    *
    * @author <a href="mailto:ingo@raleigh.ibm.com">Ingo Schuster</a>
  + * @author <a href="mailto:paulsp@apache.org">Paul Spencer</a>
    */
   public class InfoTag extends TagSupport 
   {
  @@ -105,6 +106,20 @@
                 result = data.getUser().getUserName();
               }  
   
  +            /* First Name */
  +            if (requestedInfo.equalsIgnoreCase("FirstName")) {
  +              result = data.getUser().getFirstName();
  +            }  
  +
  +            /* Last Name */
  +            if (requestedInfo.equalsIgnoreCase("LastName")) {
  +              result = data.getUser().getLastName();
  +            }  
  +
  +            /* EMail */
  +            if (requestedInfo.equalsIgnoreCase("EMail")) {
  +              result = data.getUser().getEmail();
  +            }  
               pageContext.getOut().print(result);
           }
           catch (Exception e)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message