w3pop.com :: ÍøÂçѧԺ :: 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 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]
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Îĵµ¡£
ÆÀÂÛ (0)
All