Tuesday, July 20, 2010

JSP tag library analysis



Why do we have selected as their main JSP server-side application programming tool?, Of course, JSP many attractive features and functionality, but the JSP tag library is to allow me to make this decision one of the most important causes.

銆??涓轰粈涔堣繖鏍疯鍛?鍘熷洜鏈変袱涓細缁存姢鍜屽紑鍙戦?搴︺? Server-side scripting language is the development of Internet in fact is like a furnace. In a server page, you can easily mix different script methods and objects. This Web page is simply a concrete building. It is this "material" to the server-side script mixed powerful information processing capabilities. It allows server-side programmers to develop dynamic, flexible Web page. However, on the other hand, the script is difficult to defend freedom of mixing, especially with the growing size of the project which is especially serious. We will have to allow experienced programmers to create and maintain the final product, the results allow the programmer to become a general Web designers.鏈嶅姟鍣ㄧ搴旂敤绋嬪簭鍦ㄦ渶缁堢殑鍥惧舰璁捐鍜屽疄鐜拌繖涓ゆ柟闈笂灏卞急鍖栦簡銆?Worse, because these pages have become very complicated in terms of code, development rate was correspondingly lower. Finally, many medium-sized or large-scale server-side Web applications to be introduced late and can not control costs.姝ゅ锛屽湪瀹炵幇浜嗚繖浜涘簲鐢ㄧ▼搴忎箣鍚庯紝璁稿閿?敭鍟嗚繕蹇呴』鍘诲鎵惧悎鏍肩殑绋嬪簭鍛樻潵缁存姢杩欑涔卞緱濡傚悓涓?泦鎰忓ぇ鍒╅潰鏉′技鐨勪唬鐮併?

銆??鎴戜滑璋侀兘涓嶆効鎰忕湅鍒拌繖鏍风殑缁撴灉锛屾墍浠ワ紝涓轰簡鍏嬫湇杩欎釜闂锛孉SP寮曡繘浜咰OM瀵硅薄鎶?湳锛岃?JSP鍒欐彁渚涗簡J2EE浣滀负瀵圭瓥銆傝繖浜涜В鍐虫柟妗堥兘鏄缓绔嬪湪闆嗕腑鐨勩?鍙噸鐢ㄤ唬鐮佸簱鐨勬満鍒朵箣涓娿? However, they may too difficult to use, there are many time-consuming. Moreover, these solutions do not reduce the temptation to establish confusing code, the result, we can only organize large-scale internal structure of a good team to use these technologies. This means that, although we now have to establish large-scale projects with the above method, medium-sized projects are not patronize these technologies.

The reality is that medium-scale Web application project is the main part. Therefore, many projects have to face the development and maintenance of the environment can not meet their needs situation.

Fortunately, JSP provides us with the best solution to solve this problem, tag library (Tag libraries) provides a reusable block of code to establish a simple way. However, COM and J2EE, and different is that you do not need any additional skills to master can create a tag library: If you will write JSP pages, you will build tag library. Finally, the tag library also improved Web application maintenance. This improvement on the performance of maintenance at: JSP pages easily on the realization of XML-based interfaces can be customized. The results can be imagined, Web designers can create JSP Web application without having to know how the matter JSP. As a result, Web development has become a very rich and efficient team development task. JSP programmers can create custom labels and back-end code module, and Web designers can use custom labels, and full focus on Web design itself. Tag library to solve the problem of code confusion, and doing clean and beautiful (in fact, XML is the essence of solving these problems, but the tag library is still played a key role).

What is a Tag Library?

JSP tag library (also known as custom tags) is a JavaBean generated by XML-based scripting approach. From the conceptual, the label is very simple and reusable code structure. For example, in our latest release JSPKit (within the JSP Insider), we realized the use of XML tags for easy access to XML documents. Look at the list of A.

List A: implementation of XML / XSL transformation and where the sample HTML page tag

c: / xml / example.xml

c: / xml / example.xsl

The above example uses a simple label to access the code at the behind the scenes more powerful. In the above example, first load a XML file, and then apply an XSL file to create a will be sent to the client's results?? It all, but merely used a very simple label.

JSP custom tag makes it easy to create a reuse project, the open source modules. And you all need is the tag library and its documentation, however. Important features tag library as follows:

Easy to install on multiple projects

Label is easy to migrate from a JSP project to other projects. Once a tag library, you just need that one tag library packaged into a JAR file can be in other JSP project to re-use. You can not reuse the label as a programmer in the establishment of the added labels. Because the tags can be re-used, so tag library can be easily used for your own project. Currently, the best label resources can be found in JSPTags.com this site. .

JSP tag library extension

JSP tag library can have the standard (JSP 1.2) in any of the features and functionality. This also means you have unlimited ability to expand and increase the power of JSP is no need to wait for the release of new version of the JSP. So, you can cancel the JSP include page called?? Just include labels to establish their own specifications on it.

銆??鏄撲簬缁存姢

Tag library allows JSP Web application becomes very easy to maintain.涓昏鏈変互涓嬪嚑涓師鍥狅細

Tags are easy for anyone to use, easy to understand.

All your logic resides at the center of the label in the processor and JavaBean within. This way, if you have to update your code, you only need to deal with these centers to use these files without the need to amend the code of other pages.

If you need to add new functionality, you do not change any existing page.浣犲彲浠ユ妸棰濆鐨勫睘鎬у寘鍚埌浣犵殑鏍囩鍐呬粠鑰屽紩杩涙柊鐨勮涓哄悓鏃朵繚鐣欎互鍓嶇殑灞炴?锛屽疄鐜版棫椤甸潰鐨勬甯歌繍琛屻?

For example, you may have the following label, it lets you display text in blue:

銆??My Text浣嗘槸闅忕潃椤圭洰鐨勮繘琛岋紝浣犲張鎯宠钃濊壊鍙樻殫銆?So you keep your own label, but for the addition of a new property: shade

銆??My Text鎵?湁鐨勮?鏍囩缁х画鏄剧ず钃濊壊锛屼絾鐜板湪浣犲彲浠ヤ娇鐢ㄥ悓涓?爣绛炬潵浜х敓鍙樻殫鐨勮摑鑹叉枃鏈簡銆?br />
Tags enhanced code reusability. After several tests and use that code certainly has less bug. Thus, JSP pages using custom tags also have fewer defects, more convenient to maintain up naturally.

Faster development

Tag library is a good way to reuse code. We know that the server-side language standard way to reuse code is to use the template. Tag library and template library is much better than this way. Using template library, you need to modify the templates for each project or create stiff interface. Tag library is no such restriction, and its object-oriented features with the tag library is to expand not only the ability to use flexible and extremely powerful. Also, because you reuse code, resulting in project development time spent significantly reduced, while more time can be used to design their own Web applications. The simple interface makes the tag library code to use these simple and easy to debug.

While the simple tag library to use them in particular, but to establish its level of internal support for the establishment of a simple JavaBean than more complicated. This complexity is largely due to tag library contains several parts. The skills you need to understand, but is familiar with Java and JSP.

Custom labels inside

A simple custom JSP tag includes the following elements:

JavaBean: In order to take full advantage of Java object-oriented features, reuse the code should be placed in a separate container code. The JavaBean is not part of the pool tag. They are tag library used to perform the tasks assigned based code modules.

Tag handler: This is the real core tag library. Tag handler (tag handler) it requires no external reference material (JavaBean) and JSP pages for access to information (PageContext object). The JSP page, the page put the tag attribute set passed to the label processor, JSP page, the contents of the label is marked such a treatment.褰撴爣绛惧鐞嗗櫒瀹屾垚鍏跺鐞嗚繃绋嬶紝瀹冨氨浼氭妸澶勭悊鍚庣殑杈撳嚭缁撴灉鍥為?缁橨SP椤甸潰鍋氳繘涓?澶勭悊銆?br />
Tag library descriptor (TLD file): This is a very simple XML files, TLD files to describe and explain the properties, information and labeling processor file location and other information. JSP container uses this file to map the tag library called the location and usage.

Web site of the web.xml file: In fact, this is your Web site initialization file. In this document, you can define Web application using custom tags, you can also define custom labels used to describe each TLD file.

銆??鍙戝竷鏂囦欢(WAR鎴朖AR鏂囦欢)锛氬鏋滀綘鎵撶畻閲嶇敤瀹氬埗鏍囩锛岄偅涔堜綘鑲畾闇?鎯充釜绠?究鐨勫姙娉曟妸鏍囩浠庝竴涓」鐩縼绉诲埌鍏朵粬椤圭洰涓幓銆?The tag library packaged into a JAR file that is such a convenient and efficient way tag library released.鎴戜滑鍦ㄤ互涓婄殑浜嬩緥涓病鏈夊缓绔婮AR鏂囦欢锛屼絾鏄鏋滀綘鎵撶畻鏇磋繘涓?鍦颁簡瑙AR鏂囦欢鐨勭粏鑺傦紝浣犱笉濡ㄩ槄璇烩?JSP WAR鏂囦欢绠?粙鈥濄?







相关链接:



how to convert avi to wmv



Lenogo iPod to PC Transfer build 01



Avi to 3gp



Youtube Movie to Mobile Phone Utility



News about Converters And Optimizers



HTML Component (HTML COMPONENTS) one of the



Issuing 3G licenses will be postponed to THE end of 2007



Bluesea VCD SVCD DAT Conversion



Youtube FLV TO Laptops Deluxe



Evaluation Password Managers



free flv to MP4 converter



Fun Dreamweaver 8.0 of paragraph formatting settings



X-Cloner DVD to Apple TV



Matroska video file



Premier Log Analysers



Friday, July 9, 2010

Convert AVI/MPEG to iPod

AVI/MPEG iPod Converter is a powerful and easy-to-use iPod video converter. With it, you can convert AVI, MPEG video to iPod video files and play them in your iPod. Its' operation is simple, intuitive and very easy. Here are the main features: 1.)Converts AVI (DivX, XviD, MPEG4, YUV...) to iPod video. 2.)Converts MPEG1 to iPod video. 3.)Converts MPEG2 to iPod video. 4.)Converts WMV to iPod video. 5.)Converts ASF to iPod video. 6.)Supports iPod video mp4 with AAC audio. 7.)Splits large files to multi-volumes. 8.)Offers a video player to previews and select video. 9.)Monitors the converting process in video mode. 10.)Can convert batch video files of various types in one time. 11.)Supports select a section of video to convert, by setting start point and duration. 12.)Provides a easy-to-use Quicktime-like trackbar. 13.)Easy-to-use user interface.



Recommand Link:



Mp3 to mp4



3gp to AVI



convert TO wmv



1.0 Ring Tone Maker Factory



Compare Desktop



Evaluate Access Control



APPLE CD-R ID3 to WMA Manager



Flv to swf



Blue Cat''s Liny EQ



Bliss CD-R M4A RA to DVD-Audio Manager



How-to DAT Converter



Best Online Gaming



Easy MOV CONVERTER



Thursday, July 1, 2010

iTunes Converter

iTunes Converter is a professional DRM copy protected remove program that can remove DRM from iTunes music and movie files. With the iTunes converter, you can convert iTunes to MP3, WMA, WAV, M4A, etc. fast and easy. Free download the iTunes to MP3 converter to convert iTunes file to MP3, convert iTunes M4P file to MP3 now.

Recording at speeds up to 27x, the iTunes converter, M4P converter software frees your entire music collection from copy protection iTunes music and automatically converts audio files in digital quality. Up to 9 files paralel.

Plus: Audio converter for non protected MP3, MP2, WMA, WMA Pro, OGG, M4B, AAC, AMR, AU, FLAC, AC3 and WAV files; Audio Stream Recorder for special web sites with music services.

Key Features

Remove DRM protected from music, movies, TV shows, audiobooks and podcasts.
High-Speed Digital Dubbing with up to 9 files in parallel (speed dependent on CPU and operating system).
Ability to set up a watched, incoming music folder for automatic conversions.
Automatic configuration of recording device and level.
Batch file conversion.
Automatic population of ID3 tags, album cover artwork.
CD burning function for audio and MP3 CDs.
Mobile phone ringtone generator.
Convert iTunes files - remove DRM from iTunes files by convert iTunes to MP3, iTunes to WMA, iTunes to WAV, etc.
Convert M4P files - remove DRM from M4P files by convert M4P to MP3, M4P to WMA, M4P to WAV, etc.
Convert M4V files - remove DRM from M4V files by convert M4V to MP4, M4V to AVI, M4V to WMV, M4V to 3GP, M4V to MP3, M4V to WMA, M4V to WAV, etc.
Convert DRM WMA files - remove DRM from WMA files by convert DRM WMA to MP3, OGG, WAV, etc.
Convert DRM WMV files - remove DRM from WMV files by convert DRM WMV to AVI, MP4, DivX, 3GP, MP3, WMA, WAV etc.



Recommand Link:



Best Religion



News about LANGUAGES Education



HiFi MP3 OGG Converter



Christmas-Idea Flash SWF Deconde



DVD to APPLE TV Video Converter



MP3 VQF To MP3



Happiness XviD M4V Conversion



DVD to SONY NWZ-E436FRED conversion



Free Internet TV



Youtube Video to BDMV Program



ALO Audio CENTER



Review Games And Entertainment



Youtube Movie to Windows Mobile Store



Christmasgift Flash To IPhone



avchd to Mov



Apple DVD-Audio MP2 AAC to ID3 Ripping