JSP Özel Etiketler kullanılması 19 Mart 2009 Perşembe

Bu yazı bir sunum katmanlı Jee çerçeve duraksamak sağlamak için tasarlanmıştır tanıtılması-fazla özellik sabit web veya portal uygulamaları olarak JSPs JavaScript'i modülleri kodlama olmadan yardımcı olur. The framework is packaged as a jar file for distribution and includes a server-side RESTful web service component and a set of JSP tag handlers which inserts JavaScript and Cascading Style Sheet (CSS) code into HTML files at the page rendering phrase. Çerçevesinde dağıtım için bir kavanoz dosyası olarak paketlenmiş ve bir sunucu tarafı huzurlu web hizmeti bileşeni ve JSP etiketi işleyicileri bir dizi sayfa ifade görüntüleştirme at HTML dosyaları hangi ekler JavaScript ve Cascading Style Sheet (CSS) kodu içerir. The targeted users are java developers who only have preliminary experience on writing JavaScript code. Hedeflenen kullanıcılar Java geliştiriciler JavaScript kod yazma ile ilgili olan sadece ön deneyimi bulunmaktadır.

1. 1. Introduction Giriş

Mouseover is a standard JavaScript event that is raised when the user hovers the cursor over a particular HTML element on a web page. This event has been widely used in web applications for navigation or causing an image or text to change. Mouseover bir kullanıcı bir web sayfasında belirli bir HTML öğesinin üzerine imleç hovers yükseltilir standart bir JavaScript olaydır. Bu olay çok navigasyon için web uygulamalarında kullanılan veya bir resim veya metin neden değiştirmek için. Hover-over-help, also called hover-over bubble, refers to the process of showing a small popup window when a mouseover event occurs in the browser. Hover-over-de duraksamak çağrısında coşmak, bir mouseover olay tarayıcınızda oluşur küçük bir pop-up penceresi gösteren sürecine atıfta yardımcı olur. The window contains a message to either help the user to use the application or provide additional explanation and data. Pencere ya uygulamayı kullanmak için ya da ek açıklama ve veri sağlamak, kullanıcı için bir mesaj içerir. It is a useful feature which can make your web pages more intuitive and user-friendly and can carry more information on a single page in rich internet applications (RIAs). Bu web sayfaları daha sezgisel ve kullanıcı dostu ve tek bir sayfada zengin İnternet uygulamaları (RIAs) Daha fazla bilgi taşıma da yararlı bir özelliktir. There are some tips and samples to enable the feature on the internet. Bazı ipuçları ve örnekler internet özelliği etkinleştirmek üzeresiniz. However, they are not effective in developing large-scale web applications. Ancak, büyük ölçekli web uygulamaları geliştirme konusunda etkin değildir. Some of caveats include the following: Bazı uyarılar içeren aşağıdaki:

* The message contents are directly hard-coded in JavaScript. Mesaj içeriğini doğrudan zor-JavaScript'e kodlu. They are tied-coupled with graphic user interface components, such as text labels in web pages. Onlar bağlı web sayfalarında metin etiketleri gibi grafik kullanıcı arayüzü bileşenleri, birleştiğinde. The re-usability is low. Yeniden kullanılabilirlik düşük.
* If the same message needs to appear on several pages, the message and the pertaining JavaScript code have to be copied and pasted to each of these pages. Eğer aynı mesaj birkaç sayfa üzerinde görünmesi gerekir, mesaj ve ilgili JavaScript kod kopyalanır ve bu sayfaların her biri için kopyaladım var. It is hard to maintain these duplications in multiple places. Bir çok yerde bu duplications korumak için zordur.
* The messages are designed to be static and are typically created when the page is designed. Mesajları statik olarak tasarlanmıştır ve genellikle sayfa tasarlanmıştır oluşturulur. It is difficult to insert runtime data into messages on the fly. Bu mesaj içine Hızlı çalıştırma veri eklemek için zordur.
* Portal applications are not completely supported. Portal uygulamaları tamamen desteklenmez.

The framework introduced in this article is designed to address these issues and provides a comprehensive but easy-to-use solution to java developers who don’t have extensive JavaScript experiences. Çerçevesinde bu makalede tanıttı bu konular için tasarlanmıştır ve kapsamlı bir ama kolay olan için kullanmak çözümü Java geliştiriciler gerekmez geniş JavaScript'i deneyimleri sağlar. It leverages the JSP taglibary technology, the Dojo framework, and RESTful web services. Bu JSP taglibary teknoloji leverages, the Dojo çerçeve ve huzurlu Web hizmetleri. Reusability in both web and portal environments, performance, and reliability are the factors that have been taken into consideration. Her iki web portalı ortamlar performans Reusability ve güvenilirlik olduğu göz önünde olan faktörler vardır.

0 yorum: