umm.. i think it does.. i guess when i explore this in more detail, it will
become clear.. is there any place i could find documentation on this stuff?
Saurabh Khare
IBM UK Laboratories
Hursley Park
Winchester
Phone(direct): +44 (0) 1962 815405
email: [EMAIL PROTECTED]
Ext 245405, Room A4129.
Rema Kumar <[EMAIL PROTECTED]> on 07/05/2000 07:21:35 PM
Please respond to "A mailing list for discussion about Sun Microsystem's
Java Servlet API Technology."
<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Saurabh Khare/UK/IBM)
Subject: Re: Help
setRequestAttribute(String name,Object obj,HttpServletRequest req)
Sets an attribute into the request. This attribute will be
available for JSP files.
This is used by subclasses to set beans and variables that can be used by
JSP pages via the Bean and ReqAttribute tags.
Does this answer your query?
**********************************
-----Original Message-----
From: Saurabh Khare [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 05, 2000 1:45 PM
To: [EMAIL PROTECTED]
Subject: Help
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
___________________________________________________________________________
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
___________________________________________________________________________
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