当前位置: 首页 > 网络学院 > 客户端脚本教程 > APPML > 案例研究:下载

APPML
AppML HTML 报告
AppML 过滤函数
AppML HTML 列表
AppML HTML 表单
AppML XML 报告

APPML 中的 案例研究:下载


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 1080 ::
收藏到网摘: n/a

From this page you can download the files from the case study.
通过这个页面,你可以从案例研究中下载文件。


How To Begin
如何开始

To run the examples from the case study you need a Web server that understands ASP (Active Server Pages):
如果你要运行案例研究中的案例,你需要一台可以执行ASP(动态服务器网页)的服务器。

  • Microsoft IIS 5.0 for Windows 2000
  • Microsoft IIS 6.0 for Windows XP Profesional
  • Microsoft IIS 6.0 for Windows 2003 Server

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时,你所要做的就是将案例研究中的文件复制到你的服务器上:

  • Download the zip file containing AppML
    下载包含AppML的Zip文件

  • Create a folder called "appmlcase" on your web
    在服务器上创建名为“appmlcase”的文件夹

  • Extract the zipped files to the appmlcase folder
    将压缩的文件释放到 “appmlcase”文件夹

  • Create a folder named "db" in your appmlcase folder
    在“appmlcase”文件夹中创建名为“db”的文件夹

  • Download the northwind.mdb database
    下载 “ northwind.mdb ” 数据库

  • Copy the northwind.mdb database to the db folder
    将 “ northwind.mdb ” 数据库复制到 “ db ” 文件夹中

  • Test AppML by browsing the page "appml_test.htm" on your web
    通过浏览服务器上的 "appml_test.htm" 页面来测试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]


Connecting To The Database
连接到数据库

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">
<provider>Microsoft.Jet.OLEDB.4.0</provider>
<datasource mappath="yes">db/northwind.mdb</datasource>
</database>

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">
<provider>Microsoft.Jet.OLEDB.4.0</provider>
<datasource>c:/appmldb/northwind.mdb</datasource>
<userid>user</userid>
<password>password</password>
</database>

Note: You can have as many database descriptions you like in the local.config file.
注意:你可以在local.config文件中随意地添加你喜欢的数据库描述。


Connecting To An SQL Server Database
连接到一个SQL服务器数据库

If you want to use AppML against a SQL Server database, add a new <database> element as below:
如果你希望通过SQL服务器数据库来使用AppML,需要像下面这样添加一个全新的<database>元素:

<database name="PUBS"">
<provider>SQLOLEDB</provider>
<database>PUBS</database>
<datasource>SQLSERVER</datasource>
<userid>USER</userid>
<password>PASSWORD</password>
</database>

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。


An XML Schema for AppML
AppML XML Schema

If you have Internet Explorer, you can Click Here to view the full XML Schema for an AppML document.
如果你使用的是IE,你可以点击这里来查看AppML XML Schema文档。


评论 (0) All

登陆 | 还没注册?