This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line! See this thread for details.
I have application A (A.war) and application B (B.war) deployed in my JBoss server. There is a page at application A that I can choose a product and click the button GO. And it is supposed to direct me to the login page at application B. The product information needs to be carried on to the login page.
Currently I am using HttpURLConnection to send a request to the servlet bServlet at application B. And I got the following exception:
I think the reason of the exception thrown is that the bServlet doesn't have a output stream to write back to productServlet. But if I comment out the above code, it seems bServlet doesn't receive the request since the testing printout at bServlet doesn't show up. How should I solve this problem?
Are there any other ways to implement what I describe at the first paragraph? Thank you.