T
Todd Peterson
I have a Java timer object that periodically (once a day) gets data
and stores it in an Application attribute of the ServletContext. I am
doing this because there is a substantial amount of data that doesn't
change too frequently, but does change, and I don't want an end user
to experience a significant wait time to get that data every time they
access a page, including the first time.
I have been able to get a JSP page to obtain a handle to the
ServletContext and request that application level data with no
problem. Where things are breaking down for me, is... I would now
like to create a javabean that will be used by JSP pages to perform
some manipulation (filtering, sorting... based on user privs) on that
data.
I'm not thinking it's kosher to access the ServletContext from a
javabean, nor do I know off-hand how to do that... Does anyone have
any recommendations to accomplish, what I hope I've articulated, what
I want to accomplish? I basically want to be able to access
application scoped data from a javabean...
Any help would be greatly appreciated!!!
and stores it in an Application attribute of the ServletContext. I am
doing this because there is a substantial amount of data that doesn't
change too frequently, but does change, and I don't want an end user
to experience a significant wait time to get that data every time they
access a page, including the first time.
I have been able to get a JSP page to obtain a handle to the
ServletContext and request that application level data with no
problem. Where things are breaking down for me, is... I would now
like to create a javabean that will be used by JSP pages to perform
some manipulation (filtering, sorting... based on user privs) on that
data.
I'm not thinking it's kosher to access the ServletContext from a
javabean, nor do I know off-hand how to do that... Does anyone have
any recommendations to accomplish, what I hope I've articulated, what
I want to accomplish? I basically want to be able to access
application scoped data from a javabean...
Any help would be greatly appreciated!!!