计算机外文翻译--- XML与JSP联手
《计算机外文翻译--- XML与JSP联手》由会员分享,可在线阅读,更多相关《计算机外文翻译--- XML与JSP联手(13页珍藏版)》请在毕设资料网上搜索。
1、英文原文: Using XML and JSP together Im going to assume that, like most Java programmers, you know what JavaServer Pages (JSP) and Extensible Markup Language (XML) are, but you may be a little unclear on how you can use them. JSP use is pretty easy to defend. It allows you to design a Website built from
2、 files that look and act a lot like HTML. The only difference is that JSPs also act dynamically - for example, they can process forms or read databases - using Java as a server-side scripting language. XML use is more difficult to justify. While it seems as if every new product supports it, each one
3、 seems to be using XML for a different purpose. In this article, you will learn to design a system using XML in a fairly modest way. Many Websites have vast collections of data that are displayed in a more or less standard way. I will design a system that uses XML files to store data on a Web server
4、 and JSP files to display that data. XML versus relational databases But wait, you may ask, youre using XML to store data? Why not use a database? Good question. The answer is that for many purposes, a database is overkill. To use a database, you have to install and support a separate server process
5、, which often also requires installing and supporting a database administrator. You must learn SQL, and write SQL queries that convert data from a relational to an object structure and back again. If you store your data as XML files, you lose the overhead of an extra server. You also gain an easy wa
6、y to edit your data: just use a text editor, rather than a complicated database tool. XML files are also easier to back up, to share with your friends, or to download to your clients. You can also easily upload new data to your site, using FTP. A more abstract advantage of XML is that, being a hiera
7、rchical rather than a relational format, it can be used in a much more straightforward manner to design data structures that fit your needs. You dont need to use an entity relationship editor nor normalize your schema. If you have one element that contains another element, you can represent that dir
8、ectly in the format, rather than using a join table. Note that for many applications, a filesystem will not suffice. If you have a high volume of updates, a filesystem may get confused or corrupted by simultaneous writes; databases usually support transactions, which allow concurrency without corrup
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中设计图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机 外文 翻译 xml jsp 联手
