Tuesday, March 29, 2011

JSP File Naming Conventions

JSP Names

A JSP (file) name should always begin with a lower-case letter. The name may consist of multiple words, in which case the words are placed immediately adjacent and each word commences with an upper-case letter. A JSP name can be just a simple noun or a short sentence. A verb-only JSP name should be avoided, as it does not convey sufficient information to developers. For example:

    perform.jsp

is not as clear as

    performLogin.jsp

In the case of a verb being part of a JSP name, the present tense form should be used, since an action by way of backend processing is implied:

    showAccountDetails.jsp

is preferred over

    showingAccountDetails.jsp

4 comments:

  1. Naming conventions in JSP

    ReplyDelete
  2. Cool... Thanks...Simple and Precise.........

    ReplyDelete
  3. Thanks for this post.Very important and timely article. Information provided is concise and informative. Keep up the great work!
    file naming conventions



    ReplyDelete