I have a very similar question. I have a servlet that does some
initializing (Reads a config file, Reads a database configuration
table, and determines which jsp to evaluate). The configuration
information read by this servlet must be made available to the Beans
created in the JSP evaluated. Using JRun with the .92 spec I can store
the configuration information in the servlets HttpServletRequest object
which can then be passed to the Beans by means of the processRequest
method. However, using the 1.0 spec implementation the processRequest
method is never called. Is there a similar type of callback mechanism
in JSP1.0 that allows for the implicit passing of objects between a JSP
and Beans without using scriptlet mode?
Thanks
Sergio
--- Richard Yumul <[EMAIL PROTECTED]> wrote:
> I've been going through the specs (0.91, 0.92 &
> 1.0), trying to find out if
> there was a way to write beans beans used in jsp
> pages which would be aware of
> the environment (not request parameters - stuff like
> method, URI, other header
> information) in which they are in; ie, you put a
> bean in a jsp page, and it
> automatically is aware of the request and response
> objects, and the parameters
> passed to the page. That is, without having to
> break into scriptlet-mode and
> doing something like
>
> <% bean.setRequest(request); %>
>
> Is there a mechanism that does this? The 0.91 spec
> stated that if a bean
> implemented the 'Servlet' interface, it's init(),
> destroy() methods would be
> called on creation & destruction of the bean, and
> the service() method would be
> called for each request. But apparently, this
> feature didn't make it into 0.92.
> If this feature was deprecated, what was the
> reasoning behind it?
>
> Thanks,
> Rich Yumul
>
> -------------------------
> Richard M. Yumul
> mailto:[EMAIL PROTECTED]
> DTAI Incorporated
> http://www.dtai.com
> (619)542-1700 � fax:(619)542-8675
>
>
===========================================================================
> 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".
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
===========================================================================
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".