Hi,
To get stuff in the application scope at startup we extended
org.apache.struts.action.Plugin and overrode the init method put what we
want in the application scope. We then load the plugin in
struts-config.xml. The plugin gets loaded when struts starts.
Since no one else mentioned this, does anyone have any comments, is this
an ok strategy? I guess our plugin class would stay loaded for the life
of the application, maybe a little overhead but we plan on putting some
other stuff in there eventually anyway.
Ross
Rafael Taboada wrote:
Hi folks. I need to store some objects in session scope in order to use
around the application. What is the best way to do that?
I need to have TAX value in any place of the application. I thought about
creating an Action class y call a method which it get TAX data from database
and then put the value in session scope.
But when I call for first time index.jsp, it has to call that method... How
can I do that?. Is it an appropiate way?
I don't know how to call a method inside an action class from a jsp.
Thanks in advance
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]