|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.GenericServlet | +--javax.servlet.http.HttpServlet | +--example.cmp.find.FindServlet
A client to illustrate Course bean's finder methods. The example uses three finder methods from the CourseHome interface:
Field Summary | |
private CourseHome |
home
The course local home interface. |
Fields inherited from class javax.servlet.GenericServlet |
config |
Constructor Summary | |
FindServlet()
|
Method Summary | |
void |
init()
Finds the course's home interface using JNDI. |
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, encodeBase64, generateETag, getLastModified, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
|
Field Detail |
private CourseHome home
Constructor Detail |
public FindServlet()
Method Detail |
public void init() throws javax.servlet.ServletException
init()
interface
avoids the relatively slow JNDI call for each request.
The course bean is located at java:comp/env/cmp/finder_CourseBean.
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
- if the JNDI lookup fails.public void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.io.IOException, javax.servlet.ServletException
service
in class javax.servlet.http.HttpServlet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |