Project

General

Profile

1
##
2
## Velocity template to write to local storage.
3
##
4
## Velocity context will contain the following properties
5
## flowExecutionUrl - the form action location
6
## flowRequestContext - the Spring Web Flow RequestContext
7
## flowExecutionKey - the SWF execution key (this is built into the flowExecutionUrl)
8
## profileRequestContext - root of context tree
9
## saveContext - context with details about the storage data to save
10
## encoder - HTMLEncoder class
11
## request - HttpServletRequest
12
## response - HttpServletResponse
13
## environment - Spring Environment object for property resolution
14
#set ($title = $springMacroRequestContext.getMessage("idp.title", "Web Login Service"))
15
#set ($titleSuffix = $springMacroRequestContext.getMessage("idp.client-storage-write.suffix", "Saving Session Information..."))
16
##
17
<!DOCTYPE html>
18
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
19
    <head>
20
        <meta charset="utf-8" />
21
        <meta name="viewport" content="width=device-width,initial-scale=1.0">
22
        <title>$title - $titleSuffix</title>
23
        <link rel="stylesheet" type="text/css" href="$request.getContextPath()/css/main.css">
24
        <script>
25
        <!--
26
        #include( "client-storage/local-storage-write.js" )
27
        // -->
28
        </script>
29
    </head>
30
    <body onload="doSave()">
31
        <div class="wrapper">
32
            <div class="container">
33
                <header>
34
                    <h3>$title - $titleSuffix</h3>
35
                </header>
36
                <div class="content">
37
                $springMacroRequestContext.getMessage("idp.client-storage-write.text", "Saving login session information to the browser...")
38
                </div>
39
                <noscript>
40
                    <div class="content">
41
                    $springMacroRequestContext.getMessage("idp.client-storage.no-js", "Since your browser does not support JavaScript, you must press the Continue button once to proceed.")
42
                    </div>
43
                </noscript>
44
                #parse( "client-storage/write.vm" )
45
            </div>
46
            <footer>
47
                <div class="container container-footer">
48
                    <p class="footer-text">#springMessageText("idp.footer", "Insert your footer text here.")</p>
49
                </div>
50
            </footer>
51
        </div>
52
    </body>
53
</html>
(2-2/2)