Package ca.bc.gov.webade.j2ee

This package contains the J2EE-related WebADE classes and methods, allowing the web application to manage (and the developer to retrieve) the permissions and information for the user associated with the session tied to the current HTTP request.

See:
          Description

Class Summary
InternalWebADEFilter  
OrganizationSelectionFilter  
WebADEFilter  
WebADEServletContextListener  
WebAppInitializationUtils  
WebAppRequestProcessingUtils  
 

Package ca.bc.gov.webade.j2ee Description

This package contains the J2EE-related WebADE classes and methods, allowing the web application to manage (and the developer to retrieve) the permissions and information for the user associated with the session tied to the current HTTP request.

In a web application, the Application singleton is loaded by the WebADEServletContextListener. You will need to configure this WebADEServletContextListener in your application's web.xml file. The configuration should look like the following:

<listener>
  <listener-class>ca.bc.gov.webade.j2ee.WebADEServletContextListener</listener-class>
</listener>

In addition to the servlet context listener, you will need to configure the WebADEFilter in your application's web.xml file. The WebADEFilter intercepts client requests to your application, managing the logged in user's session and making sure that the user's information and permissions are available to the developer.

The following is an example of a properly configured WebADEFilter for a Struts application, where the StrutsActionServlet name is "action":

<filter>
  <filter-name>WebADE Filter</filter-name>
  <filter-class>ca.bc.gov.webade.j2ee.WebADEFilter</filter-class>
</filter>

<filter-mapping>
  <filter-name>WebADE Filter</filter-name>
  <servlet-name>action</servlet-name>
</filter-mapping>