当前位置: 首页 > 网络学院 > 客户端脚本教程 > APPML > 案例研究:下载
From this page you can download the files from the case study.
通过这个页面,你可以从案例研究中下载文件。
To run the examples from the case study you need a Web server that understands ASP (Active Server Pages):
如果你要运行案例研究中的案例,你需要一台可以执行ASP(动态服务器网页)的服务器。
AppML is source only, so you don't have to install any components to start using AppML.
AppML仅是源代码,因此,你不需要安装其他的组建来使用AppML。
To start using AppML, all you have to do is to copy the files from the case study to a folder on your web:
开始使用AppML时,你所要做的就是将案例研究中的文件复制到你的服务器上:
Note:
注意:
The AppML source is a proposed code for AppML. The code is supposed to be fully functional, but RuanChen provides material for training only. We do not warrant the correctness and the security of the code. The risk from using it lies entirely with the user. You can only download it if you agree to have read and accepted these facts.
AppML源代码是推荐使用的AppML代码。这部分代码提供了所有的功能,但是RuanChen只提供了练习材料。我们不保证代码的正确性和安全性。所有的风险由用户自己承担。如果你已经阅读了并接受了这些条款,那么你可以下载并使用它。
I agree to the terms above. Please download AppML [我接受上述条款,并愿意下载使用]
The Northwind example database can be downloaded from Refsnes Data:
Northwind 案例数据库可以从Refsnes Data处下载:
Download northwind.mdb [下载 northwind.mdb]
The file local.config contains the information about where the database is located. If you want to change the location, just edit the file:
local.config包含了数据库地址的信息。如果你希望改变地址,你只要编辑下面的文件:
<database name="NORTHWIND"> |
When your database is located in a subfolder under your web, use the mappath attribute to map the position.
当你的数据库被定位在服务器的二级文件夹下,使用“mappath” 属性来映射今具体的位置。
For security reasons, your web users should only have read access to the database.
考虑到安全因素,你的网络用户应该只允许读取数据库。
For real life applications you should put your database outside your web folders, and grant access from the web server.
对于真正的应用程序来讲,你应该把你的数据库放在网络文件夹之外,并授权用户从网络服务器端访问。
When you place the database on a location outside your web, edit the <datasource> element like shown below. If necessary, add a <userid> and <password> tag to your description:
当你你把数据库定位在你的网络服务器之外时,编辑下方的<datasource>元素。如果需要的话,将<userid>和<password>标签添加到你的描述中。
<database name="NORTHWIND"> |
Note: You can have as many database descriptions you like in the local.config file.
注意:你可以在local.config文件中随意地添加你喜欢的数据库描述。
If you want to use AppML against a SQL Server database, add a new <database> element as below:
如果你希望通过SQL服务器数据库来使用AppML,需要像下面这样添加一个全新的<database>元素:
<database name="PUBS""> |
Substitute PUBS with the name of your database. Substitute SQLSERVER with the name of your SQL sever. Substitute USER with the name of a defined database user or owner like SA. Substitute PASSWORD with the users' password.
用你的数据库名称来替代PUBS。用你的SQL服务器来替代SQLSERVER。用一个指定的数据库用户或如SA这样的用户名来替代USER。用用户密码来替代PASSWORD。
If you have Internet Explorer, you can Click Here to view the full XML Schema for an AppML document.
如果你使用的是IE,你可以点击这里来查看AppML XML Schema文档。