OS dependent while retrieving Dispatcher
Pierre de Soyres <[email protected]> Mon, 24 Nov 2003 14:37:54 +0100
| Newsgroups | gmane.comp.web.maverick.general |
|---|---|
| Message-ID | <opry49hghnzfaimv@localhost> |
Hello,
I saw a strange comportment while retrieving the Dispatcher :
-> Under Windows XP, this code doesn't work (but it should) and i still
can't understand why :
protected Dispatcher getDispatcher() {
return
(Dispatcher)this.getCtx().getServletContext().getAttribute("maverickApplicationKey");
}
-> but this one works fine (which tooks me a long time before finding it) :
protected Dispatcher getDispatcher() {
return
(Dispatcher)this.getCtx().getServletContext().getAttribute("maverickApplicationKey");
}
return
(Dispatcher)this.getCtx().getServletContext().getAttribute("maverickApplicationKey");
-> Under linux : the right one works fine :
protected Dispatcher getDispatcher() {
return
(Dispatcher)this.getCtx().getServletContext().getAttribute(Dispatcher.MAVERICK_APPLICATION_KEY);
}
Strange ! isn't it !!
Any idea ?
Thanks.
-------------------
Pierre de Soyres
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
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: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
[INVALID FOOTER]