If you want to set him in the request do this: 
        HttpServletRequetst request;
        request.setAttribute("myBean", bean);

Request object taken from the request made to you webserver


In the session :

        HttpSession session = request.getSession();
        session.setAttribute("myBean", bean);


In the application
        ServletContext context
        context.setAttribute("myBean", bean);
        



On Tue, 27 Nov 2001 17:57:39 +0900
[EMAIL PROTECTED] wrote:

> Hi
> 
> How can I set the scope of a bean in java code.  I know how to do it in 
> a jsp file, but not how to do it in jave code.
> 
> Regards
> 
> Antony
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 


=============================================================
-- KeV -- 
=============================================================



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to