ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: APPML :: °¸ÀýÑо¿£ºÏÂÔØ

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

APPML
AppML ¼ò½é
AppML °¸Àý
AppML °¸Àý˵Ã÷
AppML ÍøÂç·þÎñ
°¸ÀýÑо¿¼ò½é
°¸ÀýÑо¿£ºÊý¾Ý¿â
°¸ÀýÑо¿£ºAppML
°¸ÀýÑо¿£ºHTML ±..
°¸ÀýÑо¿£ºHTML ±..
°¸ÀýÑо¿£ºÄ¿Â¼
°¸ÀýÑо¿£º²úÆ·
°¸ÀýÑо¿£ºÍÐÔËÈË
°¸ÀýÑо¿£º¹©Ó¦ÉÌ
°¸ÀýÑо¿£º¿Í»§
°¸ÀýÑо¿£º¹ÍÔ±
°¸ÀýÑо¿£ºÓ¦ÓóÌ..
°¸ÀýÑо¿£ºÏÂÔØ
AppML FAQ
AppML Îĵµ
AppML Êý¾Ý¿âÔªËØ

°¸ÀýÑо¿£ºÏÂÔØ


×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-28 ä¯ÀÀ:4685 :: ::

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 W3POP 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´úÂë¡£Õⲿ·Ö´úÂëÌṩÁËËùÓеŦÄÜ£¬µ«ÊÇW3POPÖ»ÌṩÁËÁ·Ï°²ÄÁÏ¡£ÎÒÃDz»±£Ö¤´úÂëµÄÕýÈ·ÐԺͰ²È«ÐÔ¡£ËùÓеķçÏÕÓÉÓû§×Ô¼º³Ðµ£¡£Èç¹ûÄãÒѾ­ÔĶÁÁ˲¢½ÓÊÜÁËÕâЩÌõ¿î£¬ÄÇôÄã¿ÉÒÔÏÂÔØ²¢Ê¹ÓÃËü¡£

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