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

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

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; просмотров: 622. Нарушение авторских прав; Мы поможем в написании вашей работы!




Аальтернативная стоимость. Кривая производственных возможностей В экономике Буридании есть 100 ед. труда с производительностью 4 м ткани или 2 кг мяса...


Вычисление основной дактилоскопической формулы Вычислением основной дактоформулы обычно занимается следователь. Для этого все десять пальцев разбиваются на пять пар...


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


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

Сравнительно-исторический метод в языкознании сравнительно-исторический метод в языкознании является одним из основных и представляет собой совокупность приёмов...

Концептуальные модели труда учителя В отечественной литературе существует несколько подходов к пониманию профессиональной деятельности учителя, которые, дополняя друг друга, расширяют психологическое представление об эффективности профессионального труда учителя...

Конституционно-правовые нормы, их особенности и виды Характеристика отрасли права немыслима без уяснения особенностей составляющих ее норм...

Тема: Составление цепи питания Цель: расширить знания о биотических факторах среды. Оборудование:гербарные растения...

В эволюции растений и животных. Цель: выявить ароморфозы и идиоадаптации у растений Цель: выявить ароморфозы и идиоадаптации у растений. Оборудование: гербарные растения, чучела хордовых (рыб, земноводных, птиц, пресмыкающихся, млекопитающих), коллекции насекомых, влажные препараты паразитических червей, мох, хвощ, папоротник...

Типовые примеры и методы их решения. Пример 2.5.1. На вклад начисляются сложные проценты: а) ежегодно; б) ежеквартально; в) ежемесячно Пример 2.5.1. На вклад начисляются сложные проценты: а) ежегодно; б) ежеквартально; в) ежемесячно. Какова должна быть годовая номинальная процентная ставка...

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