Re: how to get the commands list
Pierre de Soyres <[email protected]>
| Newsgroups | gmane.comp.web.maverick.general |
|---|---|
| Message-ID | <opru9tsnjtzfaimv@localhost> |
yes I override the init(ServletConfig) method but I still call the super.init(ServletConfig) at the end. I discovered that my Dispatcher was my ServletContext's attribute for name : "maverickApplicationKey" and not for name "mav.dispatcher" (or Dispatcher.MAVERICK_APPLICATION_KEY). Pierre On Tue, 9 Sep 2003 15:26:20 -0700, Schnitzer, Jeff <[email protected]> wrote: > Simply having derived your own dispatcher then yes, your object should > still be available in the ServletContext. But what did you override? > Did you override init() without calling the superclass method? > > Jeff Schnitzer > [email protected] > >> -----Original Message----- >> From: Pierre de Soyres [mailto:[email protected]] >> Sent: Tuesday, September 09, 2003 12:39 AM >> To: [email protected] >> Subject: Re: [Mav-user] how to get the commands list >> >> I tried to do so, but the object that i get is null. >> I use my own Dispatcher named AdminDispatcher that inherit from maverick >> Dispatcher. Does my Dispatcher should be also available as the >> ServletContext attribute key Dispatcher.MAVERICK_APPLICATION_KEY ? >> >> On Fri, 22 Aug 2003 13:21:28 -0700, Schnitzer, Jeff <[email protected]> >> wrote: >> >> > The Dispatcher has a method that obtains the (transformed, if you are >> > using that feature) configuration document as a JDOM object. >> > >> > You can get the Dispatcher from the application attribute context >> using >> > the key Dispatcher.MAVERICK_APPLICATION_KEY. >> > >> > Document doc = ((Dispatcher)this.getCtx().getServletContext() >> > .getAttribute(Dispatcher.MAVERICK_APPLICATION_KEY)) >> .getConfigDocument(); >> > >> > Enjoy :-) >> > >> > Jeff Schnitzer >> > [email protected] >> > >> >> -----Original Message----- >> >> From: Pierre de Soyres [mailto:[email protected]] >> >> Sent: Friday, August 22, 2003 6:41 AM >> >> To: [email protected] >> >> Subject: [Mav-user] how to get the commands list >> >> >> >> hello, >> >> >> >> i was wondering if there was any way to, from a Controller, get the >> >> commands list setted in the maverick.xml config file. >> >> >> >> Thanks. >> >> -- >> >> ------------------------------------------ >> >> Pierre de Soyres >> >> Ingénieur d'études >> >> e-Manation >> >> >> >> 14 Bd du Maréchal Juin >> >> 44100 Nantes >> >> >> >> >> >> FRANCE >> >> Tel: +33 (0)2 40 43 06 11 >> >> Fax: +33 (0)2 40 43 30 02 >> >> ------------------------------------------ >> >> >> >> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- >> *- >> *- >> >> Les informations contenues dans ce courrier electronique et dans les >> >> fichiers >> >> qui y sont attachees sont confidentielles et peuvent etre protegees >> >> legalement. >> >> Elles ne sont adressees qu'au destinataire. L'acces a ce courrier >> >> electronique >> >> par toute autre personne n'est pas autorise. Si vous n'etes pas le >> >> destinataire voulu, toute divulgation, copie ou diffusion de ce >> courrier >> >> electronique est interdite et peut etre illegale. >> >> Sauf mention contraire dans le corps du message, la presence de cette >> >> note >> >> prouve egalement que ce message electronique a ete verifie par un >> >> logiciel >> >> anti-virus. >> >> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- >> *- >> *- >> >> This email and any attached file are confidential and intended solely >> >> for >> >> the use of the individual or entity to whom they are addressed. >> >> Accessing this email by anyone else than the recipient is forbidden >> and >> >> may >> >> be illegal. >> >> If you received this email by error please notify the system >> >> administrator. >> >> This footnote also confirms that this message has been scanned by an >> >> anti- >> >> virus >> >> software. >> >> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- >> *- >> *- >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------- >> >> This SF.net email is sponsored by: VM Ware >> >> With VMware you can run multiple operating systems on a single >> machine. >> >> WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines >> >> at the same time. Free trial click >> >> here:http://www.vmware.com/wl/offer/358/0 >> >> [INVALID FOOTER] >> > >> > >> > ------------------------------------------------------- >> > This SF.net email is sponsored by: VM Ware >> > With VMware you can run multiple operating systems on a single >> machine. >> > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines >> > at the same time. Free trial click >> > here:http://www.vmware.com/wl/offer/358/0 >> > [INVALID FOOTER] >> > >> >> >> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- >> Les informations contenues dans ce courrier electronique et dans les >> fichiers >> qui y sont attachees sont confidentielles et peuvent etre protegees >> legalement. >> Elles ne sont adressees qu'au destinataire. L'acces a ce courrier >> electronique >> par toute autre personne n'est pas autorise. Si vous n'etes pas le >> destinataire voulu, toute divulgation, copie ou diffusion de ce courrier >> electronique est interdite et peut etre illegale. >> Sauf mention contraire dans le corps du message, la presence de cette >> note >> prouve egalement que ce message electronique a ete verifie par un >> logiciel >> anti-virus. >> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- >> This email and any attached file are confidential and intended solely >> for >> the use of the individual or entity to whom they are addressed. >> Accessing this email by anyone else than the recipient is forbidden and >> may >> be illegal. >> If you received this email by error please notify the system >> administrator. >> This footnote also confirms that this message has been scanned by an >> anti- >> virus >> software. >> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- >> >> >> >> >> ------------------------------------------------------- >> This sf.net email is sponsored by:ThinkGeek >> Welcome to geek heaven. >> http://thinkgeek.com/sf >> [INVALID FOOTER] > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > [INVALID FOOTER] > > *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- > Les informations contenues dans ce courrier electronique et dans les > fichiers > qui y sont attachees sont confidentielles et peuvent etre protegees > legalement. > Elles ne sont adressees qu'au destinataire. L'acces a ce courrier > electronique > par toute autre personne n'est pas autorise. Si vous n'etes pas le > destinataire voulu, toute divulgation, copie ou diffusion de ce courrier > electronique est interdite et peut etre illegale. > Sauf mention contraire dans le corps du message, la presence de cette > note > prouve egalement que ce message electronique a ete verifie par un > logiciel > anti-virus. > *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- > This email and any attached file are confidential and intended solely for > the use of the individual or entity to whom they are addressed. > Accessing this email by anyone else than the recipient is forbidden and > may > be illegal. > If you received this email by error please notify the system > administrator. > This footnote also confirms that this message has been scanned by an > anti-virus > software. > *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- > > -- ------------------------------------------ Pierre de Soyres Ingénieur d'études e-Manation 14 Bd du Maréchal Juin 44100 Nantes FRANCE Tel: +33 (0)2 40 43 06 11 Fax: +33 (0)2 40 43 30 02 ------------------------------------------ *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Les informations contenues dans ce courrier electronique et dans les fichiers qui y sont attachees sont confidentielles et peuvent etre protegees legalement. Elles ne sont adressees qu'au destinataire. L'acces a ce courrier electronique par toute autre personne n'est pas autorise. Si vous n'etes pas le destinataire voulu, toute divulgation, copie ou diffusion de ce courrier electronique est interdite et peut etre illegale. Sauf mention contraire dans le corps du message, la presence de cette note prouve egalement que ce message electronique a ete verifie par un logiciel anti-virus. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- This email and any attached file are confidential and intended solely for the use of the individual or entity to whom they are addressed. Accessing this email by anyone else than the recipient is forbidden and may be illegal. If you received this email by error please notify the system administrator. This footnote also confirms that this message has been scanned by an anti-virus software. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf [INVALID FOOTER]