Presentation is loading. Please wait.

Presentation is loading. Please wait.

(1) JSP Tag Libraries based Framework for Wireless Application Development Hitesh Kr. Seth Chief Technology Evangelist SeraNova, Inc

Similar presentations

Presentation on theme: "(1) JSP Tag Libraries based Framework for Wireless Application Development Hitesh Kr. Seth Chief Technology Evangelist SeraNova, Inc"— Presentation transcript:

1 (1) JSP Tag Libraries based Framework for Wireless Application Development Hitesh Kr. Seth Chief Technology Evangelist SeraNova, Inc OReilly Conference on Enterprise Java, 2001

2 (2) Agenda Overview Servlets Java Server Pages JSP Tag Libraries Tag Libraries for Wireless Application Development Design Requirements Tags Enhancements Conclusion References

3 (3) Servlets

4 (4) Servlets Java based web server extension mechanism Based on HTTP request- response Paradigm Multi threaded, Session Management Versions J2EE v1.2 – Servlets 2.2 J2EE v1.3 - 2.3 (Draft) Usage Scenarios Creating dynamic web applications Finer control than JSP

5 (5) Features Extend Web Server Functionality Similar to CGI-BIN, NSAPI/ISAPI extensions, apache Modules Portable Multiple Servlet implementations on various platforms Rich Can call any Java API, such as JDBC, EJB, JNDI etc. High Performance Loaded into memory once and called Uses threads for concurrency Can maintain connection pools

6 (6) Features Converts HTTP Form parameters into a Hashtable Customizable Session Management capabilities Using cookies and URL rewriting Application Servers implement session management Mechanisms Memory, File System, Relational Database; Web farm compatible Leverage other java capabilities such as localization

7 (7) Servlet by Example

8 (8) Java Server Pages

9 (9) JSP Embedded dynamic Java scriptlets Similar to ASP and Server Side JavaScript Implemented as a Self- Managed Servlet Compiled into Servlets and kept in Memory Separates presentation from business logic Tag Extension mechanism Versions J2EE v1.2 – JSP 1.1 J2EE v1.3 – JSP 1.2 (Draft) Usage Scenarios Dynamic/flexible presentation layer

10 (10) JSP Elements Static Templates HTML/XML/WML/... Standard Directives Include Directive Page Directive Taglib Directive Scripting Elements Declaration Expression Comments Standard Actions forward, get/set Property, include, plugin, useBean, param Custom Tags Tag Libraries

11 (11) JSP Implicit Objects request response pageContext session application out config page exception Error Pages Only

12 (12) JSP by Example

13 (13) JSP by Example - Interactions HTML Form(SubmitForm.jsp)

14 (14) JSP by Example - Beans Using Beans Without Beans

15 (15) Using Third Party Beans Upload HTML JSP

16 (16) JSP/Servlet Implementations Reference Implementation Apache Tomcat@JakarataTomcat@Jakarata Third Party Implementations Allaire JRun Application Server ATG Dynamo Application Server BEA Weblogic Application Server Gemstone/J Application Server IBM WebSphere Application Server iPlanet Application Server Orion Application Server SilverStream Application Server etc.

17 (17) JSP Tag Libraries

18 (18) JSP Tag Libraries Create application/vertical specific tags Rich Encapsulation of functionality Simplified Code Less presentation code to manage Easier to author Ease of Use Ease of Use within WYSIWYG authoring tools Portability Reusability Less Java Scriptlets Cleaner separation of presentation format & presentation logic

19 (19) JSP Taglib Examples Examples Logging XSLT Transformation xml content Iteration … Send an Email Message... JSR #000052 A Standard Tag Library for Java Server Pages

20 (20) Tag Libraries by Example

21 (21) Taglib Descriptor

22 (22) Reusable Tag Libraries Allaire JRun Tag Library Sql, Email, JMS, JNDI, XML Query, XSLT Transformation, Field Validation, Logic - For Each, If, Switch, Case Apache Jakarta Taglibs Application, BSF, DateTime, Input, JNDI, JSP Spec, Page, Regexp, Request, Response, Session, SQL, Utility, XSL BEA Weblogic Portal Tag Library Portal Framework Orion Taglibs EJB/Utility

23 (23) Tag Libraries for Wireless Application Development

24 (24) Design Requirements

25 (25) Requirements Summary Leverage existing HTTP/HTTPS based application delivery frameworks Support multiple display formats HTML, WML, HDML, i-mode (Compact HTML), XHTML-Basic Simple Similar to existing known HTML tags Simple tags and attributes Compliant with Authoring Tools

26 (26) Multi-modal Page Tag

27 (27) Hello World Tag Library Multi- modal Page

28 (28) Rendering Web Browser Wireless Microbrowser

29 (29) Taglib Descriptor

30 (30) Page Tag Impl. Browser Detection

31 (31) Page Tag Impl.(contd.) WAP/WML Delivery

32 (32) Page Tag Impl. (contd.)

33 (33) Page Tag Impl. (contd.)

34 (34) Hyperlinks Tag

35 (35) The Link Tag

36 (36) Rendering HTML Browser WML Microbrowser

37 (37) Tag Descriptor

38 (38) Link Tag Impl.

39 (39) Interactions and Tags

40 (40) Form & Fields

41 (41) Rendering HTML Browser

42 (42) Rendering WML Microbrowser

43 (43) Tag Descriptor (Field)

44 (44) Tag Descriptor (Form)

45 (45) Field Tag Impl. Call Parent Tag Methods

46 (46) Form Tag Impl.

47 (47) Form Tag Impl. Enumerate all fields

48 (48) Taglib So far Implemented Tag Common Elements,,, simplified Basic Simple Constructs for creating an complete multi-modal application

49 (49) Benefits Similar to HTML tags Ease of authoring/learning Use existing XML Compliant HTML tags, etc. Simplicity Just,,, tags can be used to create full featured applications Use all JSP features with the application Session Management Request/Response handling Call any Java API

50 (50) Enhancements Implement other delivery formats HDML, i-Mode, etc. More functionality (more tags/attributes) Use body tags Code optimization Use XSLT for templated delivery Provide capability to implement device/network specific functionality

51 (51) Conclusion JSP Tag Libraries Powerful mechanism to implement rich functionality Promotes usability and maintainability Application for a multi-modal Wireless Framework

52 (52) References

53 (53) References Servlets Servlets Homepage Java Tutorial (JavaSoft) Servlet Central Java Servlet Programming (OReilly) Java Enterprise in a Nutshell JSP JSP Homepage Professional JSP (Wrox) JSP Resource Index

54 (54) References Tag Libraries Tag Libraries in JavaServer Pages Jakarta-Taglibs Tutorial JSR #000052 glib.html glib.html Allaire JRun Tag Library Apache Jakarta Taglibs BEA Weblogic Portal Tag Library Orion Taglibs (EJB/Utility) JSP Tag Libraries at

55 (55) References Wireless WAP Forum HDML 3.0 Reference put/ put/

56 (56) Questions/Suggestions? ?

57 (57) Thanks for your time

Download ppt "(1) JSP Tag Libraries based Framework for Wireless Application Development Hitesh Kr. Seth Chief Technology Evangelist SeraNova, Inc"

Similar presentations

Ads by Google