Two simple linked EWD pages are shown below, one using a hyperlink and the other redirecting via Javascript. Note that as far as you are concerned, you access EWD pages using their .ewd file extension as if they were static pages. At run-time, EWD will not only substitute the appropriate URL for the technology you've decided to use (eg PHP, JSP, CSP etc) but will automatically add tokens to the URL(s) for session, state and security management purposes. The page designer therefore does not have to worry about the technology in which the pages will run, or add any coding to the pages for session, state and security management: EWD does it all for you, making page design simple, clean and uncluttered, which, in turn, leads to pages that are simple to understand and maintain.

Note the attribute isFirstPage="true" in the ewd:config tag of First.ewd. This tells EWD's compiler that this page can be used to start a session and is allowed to be accessed by a simple "static", book-markable URL.

However, Second.ewd is specified as not being "first" page, so it can only be accessed via a tokenised URL for the current session. Any attempt to access it via an un-tokenised URL will result in EWD returnin an error page.


  First.ewd

  <ewd:config isFirstPage="true">
  <html>
   <head>
    <title>The start EWD Page</title>
   </head>
   <body>
     <h3>This page is the first page in this application</h3>
     <div>It starts the user's session</div>
     <div>
       <a href="Second.ewd">Go to the second page</a>
     </div>
   </body>
  </html>


  Second.ewd

  <ewd:config isFirstPage="false">
  <html>
   <head>
    <title>The second EWD Page</title>
    <script language="javascript">
      function goBack() {
        document.location = 'First.ewd' ;
      }
    </script>
   </head>
   <body>
     <h3>This page is not a "first" page</h3>
     <div>It can only be accessed via a tokenised link 
        generated by EWD</div>
     <div>
       <input type="button name="back" value="Go Back to First Page" onClick="goBack()" />
     </div>
   </body>
  </html>