Bonjour.
En ce qui concerne les objets de type session, ils sont globaux � toutes les
servlets qui tournent sur la m�me JVM.
Donc, dans votre cas, les servlets A et B voient la m�me session.
Si vous le souhaitez, je peux vous envoyer un exemple.
J'esp�re que cel� r�pond � votre question, et je suis � votre disposition pour
d'autres questions sur Java, les servlets, beans, Jsp et EJB.
Dominique Chaniat
Veronique Dupierris a �crit :
> Hello,
>
> Just a little question to be sure.I have a servlet which is call by
> few jsp file, (a sort of controller). Some variables (say A) are
> initializes in the init proc and other (say B) in the doPost. Does this
> mean, that the A variable have an application scope, if session 1 set A
> to a value, session 2 will see this value ? (that's what i have) and of
> course variables B are initialized on each request, so no special
> surprise !
> The problem, is that I want to keep a trace on what the user is
> doing (ask resource, modify, free...) maybe could I save all variables
> in session and reload them on each request to 'follow' the user !
>
> Thanks for your help.
> Veronique
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html