org.apache.struts.webapp.example
Class IndexBacking

java.lang.Object
  extended by org.apache.struts.webapp.example.IndexBacking

public class IndexBacking
extends Object

Backing bean for the index.jsp page.


Constructor Summary
IndexBacking()
           
 
Method Summary
protected  StringBuffer action(javax.faces.context.FacesContext context, String action)
          Return the context relative path for the specified action.
 String create()
          Forward to the Create Registration action.
protected  void forward(javax.faces.context.FacesContext context, String url)
          Forward to the specified URL and mark this response as having been completed.
protected  StringBuffer logoff(javax.faces.context.FacesContext context)
          Return the context relative base URL for the "logoff" action.
 String logon()
          Forward to the Logon page.
protected  StringBuffer logon(javax.faces.context.FacesContext context)
          Return the context relative base URL for the "logon" action.
protected  StringBuffer registration(javax.faces.context.FacesContext context)
          Return the context relative base URL for the "edit registration" action.
protected  StringBuffer subscription(javax.faces.context.FacesContext context)
          Return the context relative base URL for the "edit subscriptions" action.
 void testListener(javax.faces.event.ActionEvent actionEvent)
          Testing actionListener call
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexBacking

public IndexBacking()
Method Detail

create

public String create()

Forward to the Create Registration action.


testListener

public void testListener(javax.faces.event.ActionEvent actionEvent)

Testing actionListener call

Parameters:
actionEvent -

logon

public String logon()

Forward to the Logon page.


action

protected StringBuffer action(javax.faces.context.FacesContext context,
                              String action)

Return the context relative path for the specified action.

Parameters:
context - FacesContext for the current request
action - Name of the requested action

forward

protected void forward(javax.faces.context.FacesContext context,
                       String url)

Forward to the specified URL and mark this response as having been completed.

Parameters:
context - FacesContext for the current request
url - Context-relative URL to forward to
Throws:
javax.faces.FacesException - if any error occurs

logoff

protected StringBuffer logoff(javax.faces.context.FacesContext context)

Return the context relative base URL for the "logoff" action.

Parameters:
context - FacesContext for the current request

logon

protected StringBuffer logon(javax.faces.context.FacesContext context)

Return the context relative base URL for the "logon" action.

Parameters:
context - FacesContext for the current request

registration

protected StringBuffer registration(javax.faces.context.FacesContext context)

Return the context relative base URL for the "edit registration" action.

Parameters:
context - FacesContext for the current request

subscription

protected StringBuffer subscription(javax.faces.context.FacesContext context)

Return the context relative base URL for the "edit subscriptions" action.

Parameters:
context - FacesContext for the current request


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.