• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Architecture question

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have got this question from a document from sun ( as well as this question is also is Cade's book )
====================================
You are developing a system with the following requirements:
Users will access the system using a standard Web browser.
All incoming requests will be filtered based on the user's IP address.
The response to the request will be an appropriate static HTML page,based on the user's IP address.
Which two J2EE technologies should be used to handle HTTP requests?(Choose two.)
A.JSP
B.JTS
C.EJB
D.SNMP
E.servlets

The answer in Sun's document is given as A and E.

Option 'E' I understand, fintering part can be done by Servlet. But why JSP? In the question it is written that the output is a static html, but JSP is used to generate dynamic content....rest of the options also not seems to be correct!!!

Thanks
Roy
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Both A) JSP and E) Servlets can be used to serve dynamic and static content.

As you know all JSPs are compiled into a servlet, so technically there's no different.
 
roy siju
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
got it. Was thinking about sun's preferred architecture so have not thought JSP as a front controller strategy. My fault....

Thanks
Roy.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You do know that there are two models for Model-View-Controller design pattern, right? Model 1 is based on JSP as controller while model 2 is based on servlet.
[ June 20, 2004: Message edited by: Chong-Leng Goh ]
 
So it takes a day for light to pass through this glass? So this was yesterday's tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic