Results 1 to 3 of 3

Thread: What is the meaning of currentUser.name in the SWF Reference

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Posts
    286

    Default What is the meaning of currentUser.name in the SWF Reference

    I've seen the below on-start action from the swf reference..
    Just notice the currentUser.name... where it came from? how to set the value?

    Code:
    	<on-start>
    		<evaluate expression="bookingService.createBooking(hotelId, currentUser.name)"
    		result="flowScope.booking" />
    	</on-start>
    Eros

    Environment:
    JSP 2.0
    Dojo 1.4.1
    Ext JS 3.1 (testing)
    Spring MVC 2.5.6.SEC01 (planning to Spring 3 using STS)
    STS
    SWF 2.0.9.RELEASE
    Tiles 2.0.5
    iBatis: ibatis-sqlmap-2.3.4.726

  2. #2
    Join Date
    Oct 2008
    Posts
    286

    Default

    anyone here, that may give me an idea... of currentUser.name?
    Eros

    Environment:
    JSP 2.0
    Dojo 1.4.1
    Ext JS 3.1 (testing)
    Spring MVC 2.5.6.SEC01 (planning to Spring 3 using STS)
    STS
    SWF 2.0.9.RELEASE
    Tiles 2.0.5
    iBatis: ibatis-sqlmap-2.3.4.726

  3. #3
    Join Date
    May 2008
    Posts
    53

    Default

    currentUser is a special EL variable that gives access to the currently authenticated Principal.

    http://static.springsource.org/sprin...l#el-variables

    This is equivalent to HttpServletRequest.getUserPrincipal()

    So currentUser.name will basically give you the name of the logged in user.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •