Студопедия — Performance
Студопедия Главная Случайная страница Обратная связь

Разделы: Автомобили Астрономия Биология География Дом и сад Другие языки Другое Информатика История Культура Литература Логика Математика Медицина Металлургия Механика Образование Охрана труда Педагогика Политика Право Психология Религия Риторика Социология Спорт Строительство Технология Туризм Физика Философия Финансы Химия Черчение Экология Экономика Электроника

Performance






Pages built using JSP technology are typically implemented using a translation phase that is performed once, the first time the page is called. The page is compiled into a Java Servlet class and remains in server memory, so subsequent calls to the page have very fast response time whereas in ASP the page is recompiled for every request.
JSP implementations support a Java programming language-based scripting language, which provides inherent scalability and support for complex operations.
Most JSP pages rely on reusable, cross-platform components (JavaBeans or Enterprise JavaBeansTM components) to perform the more complex processing required of the application, instead of relying heavily on scripting within the page itself. Developers can share and exchange components that perform common operations, or make them available to larger customer communities. The component-based approach speeds overall development and lets organizations leverage their existing expertise and development efforts for optimal results.

Development & Deployment

As mentioned earlier, JSP follows the model of separating programming logic from page design through the use of components like JavaBeans, Enterprise JavaBeans (EJB) and custom JSP tags. Assuming that web page developers are not familiar with scripting languages, JSP technology encapsulates much of the functionality required for dynamic content generation in easy-to-use JavaBeans components. The page developer can instantiate JavaBeans components, set or retrieve bean attributes and perform other functions that are otherwise more difficult and time-consuming to code. Microsoft's answer to component architecture relies on COM/DCOM to supplement the ASP technology. Given the complexity involved in developing COM components in VC++ or VB, it is by no means a comparison to the simplicity of JavaBeans, which can be easily developed using Java.

Custom Tag Libraries

The JSP technology is extensible through the development of customized tag libraries. This lets web page developers work with familiar tools and constructs, such as tags, to perform sophisticated functions. ASP does not directly support custom tags like JSP but supports XML.

MVC (Model-View-Controller) or Model 2 Architecture

Separation of Presentation and Business Logic has never been so easy with ASP or JSP. With increasing complexity the pages would clutter with Scriplets and processing code, making it hard to debug or make changes. To counter this problem, the JSP/Servlet's Model 2 architecture was introduced, providing a cleaner approach to code manageability. This is a hybrid approach for serving dynamic content combining the use of Servlets and JSP. It takes advantage of the strengths of both technologies: JSP is used to generate the presentation layer and Servlets to perform process-intensive tasks. The Servlet acts as the controller processing the requests, creating beans (models) or objects used by the JSP, and depending on the user's actions, dispatches the appropriate JSP page to the user. The JSP (view) page, which contains no processing logic, is simply responsible for extracting and inserting the dynamic content from the Servlet into static templates.

Conclusion
The JSP/Servlets Technology to be more than just an answer to Microsoft's ASP technology. JSP has become more robust and scalable with the release of J2EE. With an ever-growing support for the Java technology the JSP solution is gaining prominence and immense respect from the developer community. Its time to break free from the tyranny of Microsoft and embrace the technology from the Open Source world.

SPEAKING

17. Do you agree with this article? Give your own opinion on these both technologies.

 

 
 
Св. план 2006, поз. 142

 

Учебное издание

 

 

 

Методическая разработка

По развитию навыков технического чтения

На английском языке для студентов 2-го курса

ИЭФ, ФКСиС и ФИТУ







Дата добавления: 2015-10-15; просмотров: 588. Нарушение авторских прав; Мы поможем в написании вашей работы!



Расчетные и графические задания Равновесный объем - это объем, определяемый равенством спроса и предложения...

Кардиналистский и ординалистский подходы Кардиналистский (количественный подход) к анализу полезности основан на представлении о возможности измерения различных благ в условных единицах полезности...

Обзор компонентов Multisim Компоненты – это основа любой схемы, это все элементы, из которых она состоит. Multisim оперирует с двумя категориями...

Композиция из абстрактных геометрических фигур Данная композиция состоит из линий, штриховки, абстрактных геометрических форм...

Броматометрия и бромометрия Броматометрический метод основан на окислении вос­становителей броматом калия в кислой среде...

Метод Фольгарда (роданометрия или тиоцианатометрия) Метод Фольгарда основан на применении в качестве осадителя титрованного раствора, содержащего роданид-ионы SCN...

Потенциометрия. Потенциометрическое определение рН растворов Потенциометрия - это электрохимический метод иссле­дования и анализа веществ, основанный на зависимости равновесного электродного потенциала Е от активности (концентрации) определяемого вещества в исследуемом рас­творе...

САНИТАРНО-МИКРОБИОЛОГИЧЕСКОЕ ИССЛЕДОВАНИЕ ВОДЫ, ВОЗДУХА И ПОЧВЫ Цель занятия.Ознакомить студентов с основными методами и показателями...

Меры безопасности при обращении с оружием и боеприпасами 64. Получение (сдача) оружия и боеприпасов для проведения стрельб осуществляется в установленном порядке[1]. 65. Безопасность при проведении стрельб обеспечивается...

Весы настольные циферблатные Весы настольные циферблатные РН-10Ц13 (рис.3.1) выпускаются с наибольшими пределами взвешивания 2...

Studopedia.info - Студопедия - 2014-2024 год . (0.013 сек.) русская версия | украинская версия