Application Descriptor

application-descriptor

<application-descriptor>
  <application-properties/>
  <menus>
    <menu>
      <menu-item/>
    </menu>
  </menus>
  <entities>
    <entity>
      <view>
        <query>
          <criteria/>
        </query>
                <includeJsp/>
        <fieldset>
                  <jspInclude/>
          <field>
            <calculator/>
          </field>
        </fieldset>
        <calculator/>
        <validator/>
      </view>
    </entity>
  </entities>
</application-properties>

application-descriptor

Property Required Default value Description
name - - Project name
logo - - Project logo
copyright - - Copyright text
skin - default Skin to use. Values: default, vista
loginSuccessForward - /index.do Where to forward after success login
applicationControllerClass - - Controller class

entity

Property Required Default value Description
className y - Class name
controller - - Controller class
dynamic - false Dynamic Properties
forceSearch - false Force search form before list items

menu

Property Required Default value Description
name y - Menu name

menu-item

Property Required Default value Description
name y - Menu name

entity

Property Required Default value Description
className y - Entity Class Name
controller - - Controller Class Name

With the Controller you can manage custom views for the Entity.

includeJsp

Include a custom jsp.

Example:

<includeJsp name="/path/jsp_to_include.jsp"/>

validator

Property Required Default value Description
className y - Class Name (extends BaseValidator)
public class CustomValidator extends BaseValidator
{
        public ActionMessages validate(JewaiCrudForm form, ActionMapping mapping, HttpServletRequest request)
        {
                ...
        }
}