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.