You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dave Newton <ne...@yahoo.com> on 2008/07/10 01:27:01 UTC

[OT] Re: looking for suggestion regarding interceptor

--- On Wed, 7/9/08, Dhiraj Thakur <de...@gmail.com> wrote:
> There are 4 jsp page in which i want to show same category
> by retrieving it from database.
>  What is the best way to do that? should i write a
> intercepter which will retrieve Category from database 
> and store it in session?

If it's used across the application, by all users, and rarely changes, just keep it in the application context. You could also implement Preparable and retrieve the categories there.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org