[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

Re: Getting request info from a bean


Hi Joel,

Joel Shellman wrote:
> I have a bean being used in a JSP page via the bean tag. What is the
> standard way for the bean to access servlet information--request,
> context, jsdk api, etc.?

There is no standard way. You can either pass each bit of information
the bean might be interested in. Alternatively, you could pass the
servlet API objects (HttpServletRequest, HttpServletResponse,
ServletContext) directly to the bean, allowing the bean to look through
the information by itself.

Regards, Vincent.