This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
not directly, and for good reasons (mainly security). There's several indirect ways: - write a file with the data and check in the other application whether the file is there, if so read and delete. - send HTTP requests back and forth - use some other means of network communication
To switch between web application contexts (in the same container) you need to call getcontext()method of servletcontext. That is - getServletContext().getContext("\app2"). [ March 22, 2004: Message edited by: Varun Khanna ]
Joined: Oct 12, 2000
In a security conscious environment, the servlet container may return null for a given URL.
Not guaranteed to work, and in fact I'd recommend any servlet container disabling it by default as it is a potential serious security problem.