BusinessEventMapping.XML.
- By Prashant Sarode
- June 24, 2001
Enterprise Java
Writing a Reusable Implementation of the MVC Design Pattern
by Prashant Sarode
Listing 4. BusinessEventMapping.XML.
<BusinessEvent-Mapping>
<Event ID="ShowLoginForm">
<FunctionalityClass>com.sampleApp.SecurityMgr
</FunctionalityClass>
<Type>Redirect</Type>
<ResponseView>/ShowLoginForm.jsp</ResponseView>
<ErrorView></ErrorView>
<Event-Params/>
</Event>
<Event ID="DoLogin">
<FunctionalityClass>com.sampleApp.SecurityMgr
</FunctionalityClass>
<Type>NoRedirect</Type>
<ResponseView>/Home.jsp</ResponseView>
<ErrorView>/ShowLoginForm.jsp</ErrorView>
<Event-Params>
<Param Name="UserId">
<Type>String</Type>
<ReadOnly>False</ReadOnly>
<Scope>Session</Scope>
<Value></Value>
</Param>
<Param Name="Pwd">
<Type>String</Type>
<ReadOnly>False</ReadOnly>
<Scope>Null</Scope>
<Value></Value>
</Param>
</Event-Params>
</Event>
</BusinessEvent-Mapping>