You can open a url connection to your servlet
like this URL url_to_servlet=new
URL("http://your_serlvet_path/servletname")

URLConnection urlCon=url_to_servlet.openConnection();
urlCon.setDoOutput(true);
urlCon.setDoInput(true)

You can feed values to the servlet using
DataOutputStream dosUrl=new DataOutputStream(urlCon.getOutputStream())
dosUrl.writeInt("any integer")
 To write a string use
dosUrl.writeBytes("string you are passing");
--------
dosUrl.close();

Hope this helps
Meera

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to