Samples

SamplesXml

Code

Config

API Docs

Download

Neolectric

Samples

Here are a few samples that show how to use some basic tags.

  1. Request Parameters - background info for beginners
    tags: <dxp:Rp> and ${parameter}

  2. Using Parameters - dxp parameter classes
    tags: Parameter attributes, Parameter nodes, <dxp:Rp> <dxp:Cp>

  3. If, ElseIf, Else - working example - page logic
    tags: <dxp:If> <dxp:ElseIf> <dxp:Else>

  4. Decision trees - working example - a clean alternative to "controller servlets"
    tags: <dxp:Select> <dxp:Branch> <dxp:Case> <dxp:Bytes> <dxp:Redirect>

  5. Checking form values - self checking form
    tags: <form:FormTemplate> <form:Option> <form:Field>

  6. Database Queries - static example generated from dxp result
    tags: <dxp:DbAction> <dxp:SqlStmt> <dxp:SqlParam> <dxp:ReplaceChar> <dxp:ReadText>

  7. Diplaying query results - static example generated from dxp result
    tags: <dxp:LoopMatrix> <dxp:LoopArray>

  8. Multiple DB Updates - working example "roomeservice"
    tags: <dxp:SqlStmtArray> <dxp:SqlParamArray>

  9. Nested loops to join queries - format and display romservice orders
    tags: <dxp:LoopMatrix> <dxp:SumMatrix> <dxp:LoopRowset> <dxp:SumRowset>

  10. Nested loops generating raw xml - format rooomservice orders as xml
    tags: <dxp:LoopMatrix> <dxp:LoopRowset>

  11. Include common dxp code - calling dxp tags from a shared library page
    tags: <dxp:Include> <dxp:Section>

  12. Include common html code - how html pages on this site were generated
    tags: <dxp:Include> <dxp:DirPath>

  13. Message Authentication - encrypting messages or text
    tags: <dxp:Hmac> (Hashed Message Authentication Code)

  14. URL Encoding - turning query results into URLs
    tags: <dxp:UrlEncode>

  15. Html Encoding - encoding form values into html chars and links
    tags: <dxp:HtmlEncode>

  16. User Realms - restricting page access to valid users
    tags: <dxp:AuthUser>

  17. Manage realm users - username: demoadmin - password: demo4adr
    tags: <dxp:RealmAdmin>

  18. Shell Command tags - username: demoadmin - password: demo4adr
    tags: <sys:AbstractSysCmd> <sys:Ls>

The complete tag docs are located here