How to use HTTPUrlConnetion class to communicate bewtween two servlets like passing the data from one servlet through GET or POST method and have it returned from second servlet. Both servlets are in different web projects! Can someone post the code ?
i have created following code:
WebApp1 have input.jsp as follwos:
and Account servlet
WebApp2 have billing servlet that basically capitalises string and print it:
When i run
http://localhost:8080/WebApp1/input.jsp and send a string(e.g. fdfd) via test box and enters submit button
this url is hit
http://localhost:8080/WebApp1/Account?t1=fdfd but it did not capitalise the string and fileNotFoundException comes.
can someone help me? whats wrong