60 likes | 165 Views
JavaServer Pages TM. Introduce by 8942032 8942007 8942018. Introduction. What can JSP provides?
E N D
JavaServer PagesTM Introduce by 8942032 8942007 8942018
Introduction • What can JSP provides? • easy way to create dynamic web pages. • simplify the task of building web apps. • What exactly is JSP ? • a JSP page is simply an HTML web page that contains additional bits of code that execute application logic to generate dynamic content.
Introduction (con’t) • What are the Advantages of JSP? • The separation of interface and logic • Flexible code that can easily be updated and reused. • JSP tags for invoking JavaBeans components manage these components completely • Developers can offer customized JSP tag libraries that page authors access using an XML-like syntax. • Web authors can change and edit the fixed template portions of pages without affecting the application logic.
Creating JSP Pages • Components of JSP page. • JSP actions (or JSP tags) • Directives • Declarations • Expressions • Scriptlets • Comments
Custom Tags • Provide further separation of responsibilities between developers and page authors • Components • Tag library descriptor • Tag handler