you should also look in the fulcrum services framework on jakarta.apache.org

*********** REPLY SEPARATOR  ***********

On 03/13/2003 at 10:08 PM Vic Cekvenich wrote:

>A good practice is .... your DAO should or already does caching.
>
>- Caching JDBC (ex: phWorks
>- Caching Connection pool, ex: poolman
>- DAO, ex: Ibatis.com, Hibrenate
>
>Lots of things could be cached, not just drop downs, and you should not
>need to code any caching for it. It's automatic!
>
>"my" DAO caches everything as default, and refreshes on update.
>
>.V
>
>White, Joshua A (CASD, IT) wrote:
>> Hello All,
>>
>> I thought I would be slick an attempt to cache the Collections used to
>> populate my forms drop down list boxes instead of hitting the database every
>> time (The values may change daily).
>>
>> The problem is that the inherited "servlet" variable and the "getServlet"
>> method only return a reference to the ActionServlet when calling the "reset"
>> and "validate" methods.  (The same holds true for the action classes.  A
>> valid ActionServlet instance is only returned when performing the action).
>> All other times, these references are null.  Is there another way of getting
>> a ServletContext reference in the ActionForm class?
>>
>> Could anyone suggest some strategies for caching the collections used for
>> generating drop down list boxes?
>>
>> Regards,
>>
>> Joshua
>>
>>
>>
>> This is what I found...
>> ------------------------------------------------
>> Creating TestForm.....
>> servlet member variable is NULL
>> getServlet() is NULL
>>
>>>>>CALLING RESET!!
>>
>> servlet member variable is OK
>> getServlet() is OK
>>
>>>>>CALLING VALIDATE!!
>>
>> servlet member variable is OK
>> getServlet() is OK
>> Creating TestAction
>> servlet member variable is NULL
>> getServlet() is NULL
>> Performing TestAction...
>> servlet member variable is OK
>> getServlet() is OK
>>
>>
>> This communication, including attachments, is for the exclusive use of
>> addressee and may contain proprietary, confidential or privileged
>> information. If you are not the intended recipient, any use, copying,
>> disclosure, dissemination or distribution is strictly prohibited. If
>> you are not the intended recipient, please notify the sender
>> immediately by return email and delete this communication and destroy all copies.
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to