Could someone explain to me what is going on in this piece of code???? I
know the first few lines coz they are relevant to EJBs and I have an
understanding of that, but dont understand what its trying to do after
that! th bits about setRequestAttribute which is actually a method within
the *PageListServlet* class that extends HttpServlet interface! It would be
great help if someone could explain this to me... thanx in advance!

**************************
EJB_SampleHome homeEJB_Sample;
InitialContext ctx = new InitialContext();
Object objref = ctx.lookup("ejbsample");      // the name should match the
one in the deployment descriptor!
homeEJB_Sample = (EJB_SampleHome)PortableRemoteObject.narrow(objref,
EJB_SampleHome.class);
EJB_Sample ejbSample = homeEJB_Sample.create();


setRequestAttribute("ejbSample", ejbSample, request);


// Initialize the bean customerNumber property from the parameters
if (!getParameter(request, "customerNumber", true, true, true,
null).equals("")) {
          ejbSample.performTask(Integer.valueOf(getParameter(request,
"customerNumber", true, true, true, null)).intValue());
 }


// Call the output page. If the output page is not passed
// as part of the URL, the default page is called.
callPage(getPageNameFromRequest(request), request, response);


Saurabh Khare
IBM UK Laboratories
Hursley Park
Winchester
Phone(direct): +44 (0) 1962 815405
email: [EMAIL PROTECTED]
Ext 245405, Room A4129.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to