I think this was discussed recently in the mailing
list.

The registry is stored as a context parameter.
You can get it by doing something like :

ServletContext context = session.getServletContext();
Registry registry = (Registry) context
                        
.getAttribute(ApplicationServlet.REGISTRY_KEY_PREFIX_PUBLIC
                                                + "mathToolkit");
(replace mathTookit by the name of the servlet name
associated  with the servlet
class org.apache.tapestry.ApplicationServlet in
web.xml)

Note that 
ApplicationServlet.REGISTRY_KEY_PREFIX_PUBLIC is
private! 
So you have to change the above a little bit.
The registry is constructed in the method
ApplicationServlet.constructRegistry.


Shing

--- corsair <[EMAIL PROTECTED]> wrote:

> Hello!
> How to get access to classes in registry not from
> tapestry pages?
> I need same instance of classes in another Servlets
> and Filters.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


Home page :
  http://uk.geocities.com/matmsh/index.html


                
___________________________________________________________ 
All New Yahoo! Mail – Tired of [EMAIL PROTECTED]@! come-ons? Let our SpamGuard 
protect you. http://uk.docs.yahoo.com/nowyoucan.html

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

Reply via email to