dcsimg
How to send a big data from applet to servlet
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ashok_Paliwal
Posted On:   Sunday, June 3, 2001 10:09 PM

Hi i m trying to send a data from applet to servlet with following code. URL servletURL = new URL("MySertvlat"); URLConnection servletConnection = servletURL.openConnection(); servletConnection.setDoOutput(true); servletConnection.setDoInput(true); servletConnection.setUseCaches(false) ; servletConnection.setDefaultUseCaches (false); PrintWriter out = new PrintWriter(servletConnection.getOutputStream(),true); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(servletConnection.getOutputStream())); out.println(URLEncoder.encode("Big Data here ")); out.flush(); out.close(); & in applet i m using InputStream in = conn.getInputStream   More>>

Hi i m trying to send a data from applet to servlet with following code.

URL servletURL = new URL("MySertvlat");
URLConnection servletConnection = servletURL.openConnection();
servletConnection.setDoOutput(true); servletConnection.setDoInput(true);
servletConnection.setUseCaches(false) ; servletConnection.setDefaultUseCaches (false);

PrintWriter out = new PrintWriter(servletConnection.getOutputStream(),true);
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(servletConnection.getOutputStream()));
out.println(URLEncoder.encode("Big Data here "));
out.flush();
out.close();

& in applet i m using
InputStream in = conn.getInputStream();

When i m trying to read data in servlet, it is giving me nothing(null).
Plese write me whats a wrong with this code

   <<Less
About | Sitemap | Contact