2.6 Creating NSP Scripts

NSP helps in generation of dynamic content by embedding scripts in HTML. NSP is a clone of Active Server Pages (ASP).

The following information should be considered when creating a NSP.

Try creating your first NSP using these steps:

  1. Create an HTML file with the following code using any standard authoring tool or text editor such as NOTEPAD.

    ’Create an HTML page
    <html>
      <head>
          <title>      helloworld    </title>
      </head>
      <body>
        System time is
      </body>
    </html>
    
    ’Embed the script in the HTML page 
    <html>
      <head>
          <title>      helloworld    </title>
      </head>
      <body>
    ’Embed the code for getting the current time
        System time is   <% = cstr(now) %> 
    </html>
    
  2. Save the script as helloworld.asp under NOVONYX\SUITESPOT\DOCS.