1
Struts Framework
  • Struts is a framework that promotes the use of the Model-View-Controller architecture for designing large scale applications. The framework includes a set of custom tag libaries and their associated Java classes, along with various utility classes. The most powerful aspect of the Struts framework is its support for creating and processing web-based forms.

 

  • How PayByCreditCard.jsp is mapped ?

    <?xml version="1.0" encoding="UTF-8"?>
              <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-           config_1_1.dtd">
               <struts-config>

                   <action-mappings type="org.apache.struts.action.ActionMapping">         

                     <action path="/makePayment" type="edu.umkc.cs554.project.student.CreditCardValidationAction">
                     <forward name="success" path="/ocr/invokeSecurePay" redirect="false" />
                    </action>

                    <action path="/invokeSecurePay" type="edu.umkc.cs554.project.student.MakePaymentAction">
                    <forward name="success" path="/jsp/common/MainMenu.jsp" redirect="false" />
                    </action>

                  </action-mappings>

                   <message-resources parameter="ApplicationResources" null="false" key="org.apache.struts.action.MESSAGE" />

            </struts-config>

     

  • References

        http://j2ee.masslight.com/Chapter4.html