>Thanx for your reply.

>Could u please answer the following queries:-

>a)Where does WAS 2.0 look for user defined Beans by
>default ?
>b) Is there any way we can avoid BEANS  all together
>when we pass parameters from a Servlet to a JSP ?
>c) The above Question arises as we could not find a
>corresponding 'getAttribute()' method to a
>'setAttribute()' in the package
>'com.sun.server.http.HttpServiceRequest' which gives
>the 'setAttribute()' method.


>Mythili

Sorry Mythili, I don't understand your questions.  But the easiest way is to
extend your servlet with com.ibm.servlet.PageListServlet. This class extends the
javax.servlet.Http.HttpServlet.

Both classes are in the jsdk.jar in the *lib* folder of WebSphere/AppServer.

The com.ibm.servlet.PageListServlet has the setAttribute() method.
With this method you can transfer beans from a Servlet to a JSP (this is at
request level). The Bean Tag in your JSP will in this case be *scope=request*
and generated in java using the getAttribute of
com.sun.server.http.HttpServiceRequest.

Hope this is of some help

Peter Collette

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to