Monday, December 31, 2012

Hello Struts

Go through MVC first:
Figure 1
Project: MyEclipse -> MyHelloStruts


1. Session  

Class ActionContext

static ActionContextgetContext()
          Returns the ActionContext specific to the current thread.
 MapgetSession()
          Gets the Map of HttpSession values when in a servlet environment or a generic session map otherwise.

getContext

public static ActionContext getContext()
Returns the ActionContext specific to the current thread.
Returns:
the ActionContext for the current thread, is never null.

getSession

public Map getSession()
Gets the Map of HttpSession values when in a servlet environment or a generic session map otherwise.
Returns:
the Map of HttpSession values when in a servlet environment or a generic session map otherwise.

No comments:

Post a Comment