Hi Kavitha,
See if this helps.

String servletGET = http://127.0.0.1:8080/servlet/helloservlet  + "?"
                              + URLEncoder.encode("name") + "="
                              + URLEncoder.encode("sss")+ "&"
                             + URLEncoder.encode("dept") + "="
                             + URLEncoder.encode(cs)+ "&"
                              + URLEncoder.encode("place") + "="
                             + URLEncoder.encode("cary");

            // connect to the servlet
            URL DBservlet = new URL( servletGET );

            URLConnection servletConnection = DBservlet.openConnection();
            servletConnection.setUseCaches(false);
            servletConnection.setDefaultUseCaches(false);
            servletConnection.setDoInput(true);
            servletConnection.setDoOutput(true);

Good luck.
Bye.
-Kiran.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to