Re: Help Needed: Http Get in java

2006-05-09 Thread Chakravarthy, Sai
Why don't you append directly as a query string to URL and do request.getParameter() in JSP ? -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED] On Behalf Of [Kiran Kumar Vedula] Sent: Tuesday, May 09, 2006 6:33 AM To:

Re: Help Needed: Http Get in java

2006-05-09 Thread Chakravarthy, Sai
If you want to use URLConnection then the data written to the URL will be available in the URL inputstream... Try this... String XXX_URL =http://localhost:8080/PGAC/Jsps/JSP/PGACMultiItemCriteriaPage.jsp;; URL url = new URL(XXX_URL) ; InputStream is =

Re: How to Use HTTP POST in standalone code

2006-05-10 Thread Chakravarthy, Sai
You can use java.net.HttpURLConnection or org.apache.commons.httpclient.HttpClient for any HTTP methods. See the sample for HttpURLConnection. URL url = new URL( http, localhost, 8800, /TestServlet); URLConnection connection = url.openConnection();