| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 |
<html id="running-my-apps" xmlns="http://www.w3.org/1999/xhtml"> |
| 3 |
<head> |
| 4 |
<title>Running My Apps</title> |
| 5 |
</head> |
| 6 |
|
| 7 |
<body> |
| 8 |
|
| 9 |
<a name="running"></a> |
| 10 |
<h1>Running My Apps</h1> |
| 11 |
|
| 12 |
<p>To run a Laszlo application that you have created or modified, you must either:</p> |
| 13 |
|
| 14 |
<ul> |
| 15 |
<li><b>Put your .lzx files and art assets inside the my-apps folder</b> or |
| 16 |
a subdirectory within the my-apps folder inside the lps-@VERSIONID@ Web application. |
| 17 |
For example, if you installed the LPS using the Windows installer, the my-apps directory is at: |
| 18 |
<pre> yourInstallationDir\jakarta-tomcat-4.1.12\webapps\lps-@VERSIONID@\my-apps</pre> |
| 19 |
For Linux and OS X, the my-apps directory is at: |
| 20 |
<pre> yourInstallationDir/jakarta-tomcat-4.1.12/webapps/lps-@VERSIONID@/my-apps</pre> |
| 21 |
<p>To display the application in your browser, browse to:</p> |
| 22 |
<pre> http://localhost:8080/lps-@VERSIONID@/<i>my-apps</i>/<i>yourApplicationName</i>.lzx</pre> |
| 23 |
<note>If your modifications do not show, click the browser's <b>reload</b> button.</note> |
| 24 |
|
| 25 |
<p>or, you can</p> |
| 26 |
</li> |
| 27 |
|
| 28 |
<li><b>Create your own Laszlo-enabled Web application</b> inside your servlet container. |
| 29 |
<br/>To create a Laszlo-enabled Web application: |
| 30 |
|
| 31 |
<ol> |
| 32 |
<li>Create a new directory for your application</li> |
| 33 |
<li>In this new directory, create a subdirectory called <b>WEB-INF</b>.<br/> |
| 34 |
Yes, it <i>must</i> be called <b>WEB-INF</b> just <b>WEB-INF</b>.</li> |
| 35 |
<li>Copy the <b><code>lib</code></b> and <b><code>lps</code></b> directories |
| 36 |
and <b><code>web.xml</code></b> file from the LPS web |
| 37 |
application into your web application.�� For @VERSIONID@ you can find these |
| 38 |
directories at |
| 39 |
|
| 40 |
<pre>yourInstallationDir\jakarta-tomcat-4.1.12\webapps\lps-@VERSIONID@\WEB-INF (Windows) |
| 41 |
yourInstallationDir/jakarta-tomcat-4.1.12/webapps/lps-@VERSIONID@/WEB-INF (Linux) </pre> |
| 42 |
|
| 43 |
For the Core, you can find these directories at |
| 44 |
|
| 45 |
<pre>yourInstallationDir\lps-@VERSIONID@\WEB-INF (Windows Core edition) |
| 46 |
yourInstallationDir/lps/lps-@VERSIONID@/WEB-INF (Linux, OS-X Core edition) </pre> |
| 47 |
Copy them into your applications WEB-INF directory. |
| 48 |
<p><b>WARNING:</b>Make sure you duplicate the precise directory structure of the WEB-INF directory when you place these files and directories into your newly-created directory.</p> |
| 49 |
</li> |
| 50 |
|
| 51 |
<li>Put the .lzx files and art assets that make up your application inside the new directory you created, or put them into a subdirectory you create inside of it. |
| 52 |
</li> |
| 53 |
|
| 54 |
<li>Consult your servlet container documentation for a information about how to deploy this Web application into the container.��For Tomcat, you can copy this directory into |
| 55 |
|
| 56 |
<pre> tomcatInstallationDirectory\webapps\your-application-dir (Windows) |
| 57 |
tomcatInstallationDirectory/webapps/your-application-dir (Linux, OS-X)</pre> </li> |
| 58 |
</ol> |
| 59 |
</li> |
| 60 |
</ul> |
| 61 |
|
| 62 |
<p>For more detailed information about program development, see the <a |
| 63 |
href="./tutorials/program-development.html">Program Development</a> |
| 64 |
chapter of the <a href="developers-guide">Laszlo Developer's |
| 65 |
Guide</a>.</p> |
| 66 |
</body> |
| 67 |
</html> |
| 68 |
<!-- * X_LZ_COPYRIGHT_BEGIN *************************************************** |
| 69 |
* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. * |
| 70 |
* Use is subject to license terms. * |
| 71 |
* X_LZ_COPYRIGHT_END ****************************************************** --> |