Given the current syntax of useBean, I would say no - it won't support it. It
is probably worthwhile to take a closer look at the code that is generated by
useBean (this is from someone elses example that I still have lying around):

            bean.Bean bean = (bean.Bean) session.getValue("bean");
            boolean _specialbean  = false;
            if ( bean == null ) {
                _specialbean = true;
                try {
                    bean = (bean.Bean) Beans.instantiate(null, "bean.Bean");
                }catch (Exception exc) {
                     throw new ServletException (" Cannot create bean of class
"+"bean.Bean");
                }
                session.putValue("bean", bean);
            }
            if(_specialbean == true) {
            }

You will notice that when it finds that it doesn't have the bean, it
instantiates a new one. There is no reason why you couldn't write your own
library function to do this or petition Sun to include the feature (maybe
optional?). It is a very interesting idea!

"Sullivan, Sean" wrote:

> This question is based upon my limited knowledge of
> JSP 1.0 Public draft 1.
>
> The jsp:useBean action has this syntax:
>
>   <jsp:useBean id="connection" class="com.myco.myapp.Connection">
>
> I'd like useBean to instantiate a serialized bean instance.
>
> Is there any way to specify a serialized bean instance (.ser file) instead
> of a class?
>
> ________________________________
> Sean C. Sullivan
> Senior Software Engineer, Intel Corp.
> [EMAIL PROTECTED]
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JSP-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

--
Richard Vowles, Senior Systems Engineer,
Brocker Professional Services, New Zealand Inprise Distributor
MAIL: [EMAIL PROTECTED], [EMAIL PROTECTED]
HTTP: http://www.esperanto.org.nz
[my messages contain my own opinions, not those of my employer]

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to