Conventions for naming JSP files and directories
As you populate directories with JSP files, adhere to a consistent hierarchical directory structure and a consistent file naming convention.
Use the following rules when choosing names for JSP files:
- Do not use any capital letters.
- Use underscores, not hyphens, to separate words.
- If the JSP file is an anchor page, include the word anchor in the name.
Directory and file name syntax
module/entity_screen_type_viewdesc|anchor.jsp
Example
om/orderline/search/orderline_search_bydate.jsp
module represents
a two-character module code. For example:
- cm - Catalog Management
- em - Alert Management
- im - Inventory Management
- om - Order Management
- pm - Participant Management
entity represents the resource ID
of the entity. For example:
- order - Order entity
- orderline - Order Line entity
- orderrelease - Order Release entity
screen_type represents the resource
type of the view. For example:
- list - List views
- detail - Detail views
- search - Search views
viewdesc represents an abbreviated
description of the view or the inner panel. For example:
- primaryinfo - Primary Information
- paymentinfo - Payment Information
- collectiondtl - Collection Details