Re: Role of servlet

"gstrackbe" <[email protected]> Fri, 15 Mar 2002 20:02:06 -0000
Newsgroups gmane.comp.java.ejb.general
Message-ID <[email protected]>
In one scenario, the "controller servlet" is used to manage the flow 
of the web app between the JSPs, with JSP being used primarily to 
display the results.  The controller servlet uses javabeans to do 
things like getting a database connection (often from a pool of 
connections) and performing typical operations on the database 
(insert, update, etc.) using information stored in the request object 
passed on by the controller servlet.  The result set is returned to a 
JSP for display.  The controller servlet might also perform 
authentication of the user and prevent a command from being done 
twice (when a page is reloaded, for example).  Summary: A JSP 
initially passes a request object to the controller servlet, which 
figures out which javabean to use and which JSP to pass the results 
onto next, based on parameters stored in the request object.

There are some great books out there that do a good job of describing 
this.  One is called "Web Development with Java Server Pages".  It 
has been out for awhile, but still has good info, and you can 
probably get it "used" for about $10 - $15.

Hope this helps.

G. Strackbein 
--- In EJB-Developer@y..., "Nellai..." <nellaigi@y...> wrote:
> Hi,
>   Can anyone tell me about the role of a servlet in
> the case of using jsp,javabeans,servlet and a database
> in a typical scenario? 
> 
> Also let me know about the design patterns available
> with using J2EE,Servlets &JSP combination.
> 
> Regds,
> Nellaiyapan R.G.
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Try FREE Yahoo! Mail - the world's greatest free email!
> http://mail.yahoo.com/



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/nuyOHD/7.PDAA/yigFAA/5cFolB/TM
---------------------------------------------------------------------~->

EJB-Developer group email addresses:
  Post message: [email protected]
  Subscribe:    [email protected]
  Unsubscribe:  [email protected]
  List owner:   [email protected]

Our other technical discussion groups:
 - For general Java (J2EE) questions/answers: http://groups.yahoo.com/group/Java_Developer
 - For peer-to-peer software development discussion: http://groups.yahoo.com/group/P2P-Developer

Web link to the EJB-Developer group:
  http://groups.yahoo.com/group/EJB-Developer

ATTENTION: You are receiving this message because you actively subscribed to the EJB-Developer technical discussion group on Yahoo! Groups.  All subscriptions come from Yahoo-verified email addresses and are logged; therefore subscriptions can be proved to any appropriate legal authority.  To unsubscribe, send a blank email from the email address receiving group messages to the "Unsubscribe" email address shown above.  If unsubscribing doesn't work, send a message concerning this problem to [email protected].  Only Yahoo! Groups is responsible for their own subscription services; the moderator will not perform these services at any time.

*** EJB-Developer - A free service brought to you by Democracy 2.0 (www.democracy2.org) *** 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/