JSP - More than Dynamic Pages: When and Why to Use It Presented by: - - PowerPoint PPT Presentation

jsp more than dynamic pages when and why to use it
SMART_READER_LITE
LIVE PREVIEW

JSP - More than Dynamic Pages: When and Why to Use It Presented by: - - PowerPoint PPT Presentation

JUGS Work In Progress Seminar JSP - More than Dynamic Pages: When and Why to Use It Presented by: Paul Giotta Tiberiu Fsts 22 May 2000 Presentation Overview Part 1 Part 2 Project Requirements Design Drivers


slide-1
SLIDE 1
  • JUGS

Work In Progress Seminar

JSP - More than Dynamic Pages: When and Why to Use It

Presented by:

Paul Giotta Tiberiu Füstös

22 May 2000

slide-2
SLIDE 2
  • Presentation Overview

Part 1

  • Project Requirements
  • Solution Landscape
  • Introduction to JSP

– Programming features – Application server features

  • JSP and Servlets
  • JSP and EJB
  • Container Vendors
  • Platform Selection Criteria
  • Part 2
  • Design Drivers
  • Application Model
  • Model/View/Controller Approach
  • Simple Forms
  • Complex Forms
  • OO Solution
  • Deployment
  • Security
  • Future developments
slide-3
SLIDE 3
  • Project Background and Requirements

– Client and Project are Confidential – Security is Critical – Multi-Lingual

Phase 1:

– Bring client’s current business processes to the web ASAP – Very short design and development cycle – Small amount of custom functionality – Maximize reuse in phase 2 – Keep it simple

Phase 2:

– High volume eCommerce site – Lots of standard functionality:

  • Catalog, Shopping Cart, Payment, Personalization, Cross Selling, etc.

– Specific requirement not yet determined

slide-4
SLIDE 4
  • Network Architecture
slide-5
SLIDE 5
  • Solution Landscape
  • !
slide-6
SLIDE 6
  • Intro to JSP: Page Elements
  • Standard Tags
  • ‘Use Bean’
  • Session Management
  • Alternate Languages
  • Custom Tags

...<BODY> <%@ page language="java" import="com.acme.app.*, java.util.*" %> <jsp:useBean id="hist" scope="session" class="com.acme.app.histBean" /> <% Iterator itOrders = hist.getOrderList().iterator(); while (itOrders.hasNext()){ Order odr = (Order)itOrders.next(); %> <TR> <TD>Autrags-Nr.: </TD> <TD> <%= odr.getRenderer("odrNum").disp()%> </TD> <TD>Liefer-Datum:</TD> <TD> <%= odr.getRenderer("dvDt").disp()%> </TD> </TR> <% } %> </BODY></HTML>

slide-7
SLIDE 7
  • Intro to JSP: App Server Features
  • Applications

– ‘Virtual Server’ – One of 4 levels of scope for a bean

  • Deployment

– Deployment Descriptors – WAR file

  • Security

– Forms based – Defined at Application Level

  • JSP Server remotlely connected to Web Server

– Dynamic pages must not be in DMZ :-) – Some support for Load Balancing / Fault Tolerance

slide-8
SLIDE 8
  • JSP and Servlets
  • JSP extends Servlet API
  • Many features are actually inherited from Servlet specification
  • JSP spec requires implementations to compile JSP’s into Servlets
  • Strong relationship between versions of Servlet & JSP specs:

Servlet 2.1 JSP 1.0 Servlet 2.2 JSP 1.1

slide-9
SLIDE 9
  • JSP and EJB
  • JSP 1.1 / Servlet 2.2 define the equivalent of an EJB Web Container
  • JSP applications should be directly portable to EJB containers

JS P E JB

W eb presentation layer JS P Tags JS P T ags A pplication Logic Java B eans S ession B eans P ersistence N o direct support (D IY ): B eans w /JD B C S ession B eans w /JD B C E nitiy B eans w /C M P (D IY ) D eploym en t W A R file D eploym ent D escriptors W A R file D eploym ent D escriptors

slide-10
SLIDE 10
  • JSP Containers: Vendors & Pricing

Product

  • Approx. Price (USD) Comments

Allaire JRun

Base version: free Pro version: $600 per processor Pro Unlimited: $2000 per machine Largest installed base

Caucho Resin

Free for non-commercial use $500 per Server $2500 with premium support Most features Open Source

Jakarta Tomcat

Free Open Source Offical Reference Implementation Part of the Apache project

slide-11
SLIDE 11
  • Platform Selection Criteria
  • Security
  • Standards Compliance
  • Upward compatibility w/ EJB
  • Delay decision for expensive, transactional, eCommerce

platform

  • Quick implementation
slide-12
SLIDE 12
  • Solution Landscape Revisited
  • !
slide-13
SLIDE 13
  • Conclusions
  • JSP defines an application server that is well suited to projects of small

to medium complexity.

  • JSP containers are an excellent starting point for organizations that

want to pursue EJB development, but are not ready to commit to the cost and learning curve of a full EJB product.

slide-14
SLIDE 14
  • JUGS

Work In Progress Seminar

JSP - More than Dynamic Pages: When and Why to Use It

Part II

slide-15
SLIDE 15
  • ""
  • #$%&#' %'

'

  • %#
  • () #
  • *#$&%#&
slide-16
SLIDE 16
  • +,-
  • +#*.#-
slide-17
SLIDE 17
  • %/
  • 0##
  • %#
  • %
  • #%
  • %&%

#$

slide-18
SLIDE 18
  • "1)
slide-19
SLIDE 19
  • 2 3#
slide-20
SLIDE 20
  • $0
  • "+-4

– +23) &&% ##%- "'(5&60#'738

  • 4

– !) ###&)

  • 94

– +-4,4#%+9- )%+)-

slide-21
SLIDE 21
  • $0
  • 5 4
  • 5#&% 4

– # – :64%;+&-%;+<-= – &'> –

slide-22
SLIDE 22
  • 90
  • 4

– #&%!)

  • 94

– )&$&&%#&?

  • #4

– +#-#$.#% #&&# )) 9 &6! )@AB – +55-#$ &6% > % !)& 8

slide-23
SLIDE 23
  • C#455
  • 1#

– &45) #4 %'0!# '*#'2* ' ' %D'EFFG

  • &6 &%)

C>

  • &6H&#

+-

  • $%)%

% %

  • 0%&#

+-

  • C) &
slide-24
SLIDE 24
  • 5&6
slide-25
SLIDE 25
  • "% &$
  • "%4!

&%

  • !4>*>*) +-&
  • &%4

– # – – % – ) – #% –

slide-26
SLIDE 26
  • #%
  • &#'

# ?'%' %

  • 4##%

)#%

  • (&% & !)

##4

– # )! – &!$&%) # – $# # &% ,>

slide-27
SLIDE 27
  • %#%
  • #%+$!-

% % )&>9

  • 4

:8$$A$$= :#%$= :)&$#$= :#$= %I<>6:#$= :)&$#$= :# $= :$=:$= :# $= :#$$= :$#=5(0"(3:$#= :#$$= :#%$= :8$$A$$=

slide-28
SLIDE 28
  • 0##"
  • $%

#+)&$-.#&%,

  • 9#?

)!+*#- 9

  • 9+#-

&#0#% *"

slide-29
SLIDE 29
  • *
  • 3!4

– 46!> >9> – 4)))># > – 4)))>>#*# – 4)))>6)>

  • !4

– %>''93>'EFFF

# '0!'*#'2* '' ' 5) #4%' %D'EFFG

7' '* 2'* ' 1'"4 *#&5&6$5)'$%'EFFJ