Hi Piyush,
Are the values reaching the servlet? you can find this out by giving
system.out.println("name: "+req.getParameter("name"))
if the data is printed out, then there is something wrong with the JDBC
part. If the data is null
it means that the applet is not sending any data. Also throw all the
exceptions or give a print
statement after catching the exception. Print something like "check1",
"check2"... etc in the
doGet() or doPost() method, this will help to find out where the problem is.
Hope this helps,
Regards,
Nagaraj.
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
PIYUSH NIGAM
Sent: Wednesday, November 29, 2000 8:04 AM
To: [EMAIL PROTECTED]
Subject: Applet->Servlet->Database
Dear Java mates,
I have a swing applet communicating to a servlet which in turn SELECTs
values from the database and sends them as serialized objects to the applet.
This communication is working fine values are going and coming across a
URLConnection....But when I pass values to the servlet to INSERT into the
database it all falls on it's face. Is their some security feature which
hampers the insertion of values coming from such a source (though it seems
to permit values to be read and sent!?). I am getting a little worked up
here- any help would be great- even a statement saying that someone has done
it will help,
Thanx
Piyush Nigam
[EMAIL PROTECTED]
___________________________________________________________________________
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
___________________________________________________________________________
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