live.constants
Class Mappings

java.lang.Object
  extended bylive.constants.Mappings

public final class Mappings
extends Object

Mappings are very similar to Attributes, but somewhat from the other direction. Mappings represents valid responses of actions of where to go next. Each constant then is a forward that should correspond to those in struts-config. All [actually most] also contain a "This" forward which will forward to the page (action, really) in question. So while, for instance, you would use Mappings.guests.list.OK from the action ListGuestAction (called from URI /Guests/List.page) if everything is hunky dory, you would use Mappings.guests.list.This from another action that should go to the guest list when complete. As with Attributes, theres a special case, though these are better structured. There is also a Attributes.Globalclass that holds forwards that are used in many or all actions, but this time all the specific classes inherit from it. For instance, the timeout page is located in Global and inherited by almost every other action.

Author:
Evan Driscoll

Nested Class Summary
static class Mappings.Global
          Forwards that are used from many actions
static class Mappings.guests
          Forwards from actions called at /Guests/ URIs
static class Mappings.login
          Forwards from the login action
static class Mappings.networks
          Forwards from actions called from /Networks/ URIs
static class Mappings.sharedSegments
          I have NO idea if any of this is right!
static class Mappings.status
          Forwards from the status action
 
Constructor Summary
Mappings()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mappings

public Mappings()


Copyright © 2005