Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 71d40963b505df4524269198e237b3e3 > files > 986

virtuoso-opensource-doc-6.1.4-2.fc14.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
 <head profile="http://internetalchemy.org/2003/02/profile">
  <link rel="foaf" type="application/rdf+xml" title="FOAF" href="http://www.openlinksw.com/dataspace/uda/about.rdf" />
  <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" />
  <meta name="dc.title" content="3. Quick Start &amp; Tours" />
  <meta name="dc.subject" content="3. Quick Start &amp; Tours" />
  <meta name="dc.creator" content="OpenLink Software Documentation Team ;&#10;" />
  <meta name="dc.copyright" content="OpenLink Software, 1999 - 2009" />
  <link rel="top" href="index.html" title="OpenLink Virtuoso Universal Server: Documentation" />
  <link rel="search" href="/doc/adv_search.vspx" title="Search OpenLink Virtuoso Universal Server: Documentation" />
  <link rel="parent" href="quicktours.html" title="Chapter Contents" />
  <link rel="prev" href="qsnntp.html" title="NNTP" />
  <link rel="next" href="qsvspexamples.html" title="VSP Examples" />
  <link rel="shortcut icon" href="../images/misc/favicon.ico" type="image/x-icon" />
  <link rel="stylesheet" type="text/css" href="doc.css" />
  <link rel="stylesheet" type="text/css" href="/doc/translation.css" />
  <title>3. Quick Start &amp; Tours</title>
  <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" />
  <meta name="author" content="OpenLink Software Documentation Team ;&#10;" />
  <meta name="copyright" content="OpenLink Software, 1999 - 2009" />
  <meta name="keywords" content="" />
  <meta name="GENERATOR" content="OpenLink XSLT Team" />
 </head>
 <body>
  <div id="header">
    <a name="vspquickstart" />
    <img src="../images/misc/logo.jpg" alt="" />
    <h1>3. Quick Start &amp; Tours</h1>
  </div>
  <div id="navbartop">
   <div>
      <a class="link" href="quicktours.html">Chapter Contents</a> | <a class="link" href="qsnntp.html" title="NNTP">Prev</a> | <a class="link" href="qsvspexamples.html" title="VSP Examples">Next</a>
   </div>
  </div>
  <div id="currenttoc">
   <form method="post" action="/doc/adv_search.vspx">
    <div class="search">Keyword Search: <br />
        <input type="text" name="q" /> <input type="submit" name="go" value="Go" />
    </div>
   </form>
   <div>
      <a href="http://www.openlinksw.com/">www.openlinksw.com</a>
   </div>
   <div>
      <a href="http://docs.openlinksw.com/">docs.openlinksw.com</a>
   </div>
    <br />
   <div>
      <a href="index.html">Book Home</a>
   </div>
    <br />
   <div>
      <a href="contents.html">Contents</a>
   </div>
   <div>
      <a href="preface.html">Preface</a>
   </div>
    <br />
   <div class="selected">
      <a href="quicktours.html">Quick Start &amp; Tours</a>
   </div>
    <br />
   <div>
      <a href="newadminui.html">Where to Start</a>
   </div>
   <div>
      <a href="qsclientcon.html">Client Connections</a>
   </div>
   <div>
      <a href="qsvdbsrv.html">Virtual Database Server</a>
   </div>
   <div>
      <a href="qswebserver.html">Web Server</a>
   </div>
   <div>
      <a href="qswebdav.html">WebDAV</a>
   </div>
   <div>
      <a href="qswebservices.html">Web Services</a>
   </div>
   <div>
      <a href="qstexpwsmodules.html">Exposing Persistent Stored Modules as Web Services</a>
   </div>
   <div>
      <a href="qsvsmx.html">VSMX - Virtuoso Service Module for XML</a>
   </div>
   <div>
      <a href="qssqltoxml.html">SQL to XML</a>
   </div>
   <div>
      <a href="qsnntp.html">NNTP</a>
   </div>
   <div class="selected">
      <a href="vspquickstart.html">Dynamic Web Pages</a>
   </div>
   <div>
      <a href="qsvspexamples.html">VSP Examples</a>
   </div>
   <div>
      <a href="qshostingplugs.html">Third-Party Runtime Typing, Hosting &amp; User Defined Types</a>
   </div>
   <div>
      <a href="troutips.html">Troubleshooting Tips</a>
   </div>
    <br />
  </div>
  <div id="text">
		<a name="vspquickstart" />
    <h2>3.11. Dynamic Web Pages</h2>

  <p>Virtuoso provides an extensible array or dynamic methods for creating
  data driven web pages.  Through runtime hosting Virtuoso can directly host, store
  and drive:</p>
    <ul>
      <li>PHP</li>
      <li>JSP</li>
      <li>ASP.Net</li>
      <li>Perl</li>
      <li>Python</li>
      <li>Ruby</li>
      <li>Natively - VSP and VSPX:</li>
    </ul>

  <p>Virtuoso Server Pages (VSP) is Virtuoso&#39;s specification for creating dynamic database driven Web
  pages, these files have the extension &quot;.vsp&quot; and are identical in functionality to: ASP, PHP,
  and JSP pages.  A fundamental difference between VSP pages and others (PHP, ASP. and JSP pages)
  is the fact that VSPs are specialized forms of Virtuoso Stored procedures which implies that
  data is in-process rather than out-of-process, you do not have to complete a client-server
  connection in order to actually bind to the data being used in a VSP page. The obvious benefit
  being significant performance improvements over ASP, PHP, and JSP pages (which all bind to data
  out-of-process).</p>
			<p>
Since VSP is essentially Virtuoso PL in a web page you can do anything that PL can from or part of
a web page either directly or from interaction with the user.  A massive advantage of using VSP
is that you do not have to worry about making connections to the database or the overhead of RPC&#39;s
because the HTTP server is built into Virtuoso.  When you write a VSP page the
connection is assumed since you are already in Virtuoso!
VSP is server script and is therefore executed in the server as it is encountered on the page.  For this reason client (JavaScript) and server
script cannot directly interact but can supplement each other.  You can call JavaScript inside a VSP loop, for example, to manipulate something
that already exists on the page but you cannot pass variables by reference from VSP directly to JavaScript or vice versa.
Page flow control is managed using FORMs.  The state of the page is defined in form fields such as INPUT boxes and TEXTAREA boxes and then
passed on to the next form or page using POST.
</p>

<p>Virtuoso Server Pages for XML (VSPX) is an XML based framework and
state-managed system similar to ASPX.  Pages are written in XML to describe
templates of data-aware web-widgets.  This massively reduces the code-effort
and avoids many bugs by providing the functionality for you, of which you specify
the data-source, be it XML, SQL or other, and which predefined control you want
it represented by.  VSPX allows for custom-designed controls too.  Since XML is a
key factor for VSPX so does XSLT for providing total separation between the
data, business logic and the layout on the web page.</p>

<div class="tip">
      <div class="tiptitle">See Also:</div>
  <p>The <a href="webappdevelopment.html">Web Application Development</a> Chapter.</p>
    </div>

<table border="0" width="90%" id="navbarbottom">
    <tr>
        <td align="left" width="33%">
          <a href="qsnntp.html" title="NNTP">Previous</a>
          <br />NNTP</td>
     <td align="center" width="34%">
          <a href="quicktours.html">Chapter Contents</a>
     </td>
        <td align="right" width="33%">
          <a href="qsvspexamples.html" title="VSP Examples">Next</a>
          <br />VSP Examples</td>
    </tr>
    </table>
  </div>
  <div id="footer">
    <div>Copyright© 1999 - 2009 OpenLink Software All rights reserved.</div>
   <div id="validation">
    <a href="http://validator.w3.org/check/referer">
        <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" />
    </a>
    <a href="http://jigsaw.w3.org/css-validator/">
        <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" height="31" width="88" />
    </a>
   </div>
  </div>
 </body>
</html>