Samples
Here are a few samples that show how to use some basic tags.
- Request Parameters - background info for beginners
tags: <dxp:Rp> and ${parameter}
- Using Parameters - dxp parameter classes
tags: Parameter attributes, Parameter nodes, <dxp:Rp> <dxp:Cp>
- If, ElseIf, Else - working example - page logic
tags: <dxp:If> <dxp:ElseIf> <dxp:Else>
- Decision trees - working example - a clean alternative to "controller servlets"
tags: <dxp:Select> <dxp:Branch> <dxp:Case> <dxp:Bytes> <dxp:Redirect>
- Checking form values - self checking form
tags: <form:FormTemplate> <form:Option> <form:Field>
- Database Queries - static example generated from dxp result
tags: <dxp:DbAction> <dxp:SqlStmt> <dxp:SqlParam> <dxp:ReplaceChar> <dxp:ReadText>
- Diplaying query results - static example generated from dxp result
tags: <dxp:LoopMatrix> <dxp:LoopArray>
- Multiple DB Updates - working example "roomeservice"
tags: <dxp:SqlStmtArray> <dxp:SqlParamArray>
- Nested loops to join queries - format and display romservice orders
tags: <dxp:LoopMatrix> <dxp:SumMatrix> <dxp:LoopRowset> <dxp:SumRowset>
- Nested loops generating raw xml - format rooomservice orders as xml
tags: <dxp:LoopMatrix> <dxp:LoopRowset>
- Include common dxp code - calling dxp tags from a shared library page
tags: <dxp:Include> <dxp:Section>
- Include common html code - how html pages on this site were generated
tags: <dxp:Include> <dxp:DirPath>
- Message Authentication - encrypting messages or text
tags: <dxp:Hmac> (Hashed Message Authentication Code)
- URL Encoding - turning query results into URLs
tags: <dxp:UrlEncode>
- Html Encoding - encoding form values into html chars and links
tags: <dxp:HtmlEncode>
- User Realms - restricting page access to valid users
tags: <dxp:AuthUser>
- Manage realm users -
username: demoadmin - password: demo4adr
tags: <dxp:RealmAdmin>
- Shell Command tags -
username: demoadmin - password: demo4adr
tags: <sys:AbstractSysCmd> <sys:Ls>
The complete tag docs are located here
|