Could you construct the Validator as a bean and set some property that would
give it access to the ServletContext?

On 10/19/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I am running Spring to manage hibernate sessions and need to write a
> validator which validates some input against my database. Currently in my
> Tapestry Page classes I pass the servlet context to my ServiceManager
> which allows me access to my DAO objects.
>
> The problem is I can't figure out how to gain the current ServletContext
> from within my validator to pass to my ServiceManager.
>
> Any help would be greatly appreciated.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to