Debugging suggestions:
- Have the servlet log any messages that come into it. See if your applet
is getting through.
- Examine the servlet runner's logs to see if it reports any errors.
- Check to see if you're running behind a firewall. Perhaps your web
browser was set up to use a proxy.
- Test with the applet and the servlet on the same machine (if you haven't
done so already). This would bypass any firewall issues.
- Write a test applet that sends a HTTP "Get" message to a standard web
server on the outside and prints the result. Perhaps your applet is sending
a malformed GET or POST request.
and my favorite debugging technique (courtesy of J. Alfke):
- Look at your code and think really hard!
(OK, the last sounds silly, but debugging often comes down to looking at
your code and thinking carefully about your assumptions and what each line
really does.)
...Richard
Richard Clark
Training Program Manager
Verifone, a division of HP
[EMAIL PROTECTED]
+1-408-919-8858
-----Original Message-----
From: neeraj koul [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 03, 2000 3:45 PM
To: [EMAIL PROTECTED]
Subject: [SERVLET-INTEREST] applet-servlet(applet only as GUI)
hi,
I have an application which has applet at the front end and servlet at
the back. The applet just serves as a GUI and is used to send data to the
servlet. The servlet accesses the database and outputs on a browser(not in
netscape). Now when I access the servlet seperately(using its http
address) it workd fine and ouputs the result in a netscape window.
However, when I try to send data to the servlet using the applet,nothing
happens. I ouputed the address of servlet inside the applet and found out
it is correct. I followed JASON Hunters example of daytime server(page
290) to do it. Can somebody suggest some way out. THE HELP WOULD BE REALLY
APPRECIATED
regards neeraj
___________________________________________________________________________
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