I have few issues in our application development.
Can any one help me out if they are free.
problem is with the AppletServlet communication.
In our application an applet is embeded in a jsp.
That applet when executed from a remote PC (client system) creates a text file(some bill will be generated eg:bill.txt) in the remote machine (eg. in the C: drive) and drives the local printer (default dot matrix printer) which is configured and connected to that remote macine and prints that text file.
Up to here it is working fine(creation of the file and printing the file using dot matrix printer).
After printing the file that applet needs to talk to servlet inorder to redirect the page to previous page.
Iam able to see(debug) the URL of the servlet within the java console and no exceptions are coming in the java console of the applet.
But the request is not reaching the servlet.
Servlet doesn't seem to get the object we are sending.
None of the debug messages in the Servlet appear on the server console.
onSendData() and getConnection() methods arein the applet in my previous post..
Joined: Mar 22, 2005
Welcome to JavaRanch.
You can edit your post by using the button. When you do that, please also make sure that you UseCodeTags and that your code appears properly indented; it's unnecessarily hard to try and make sense of it otherwise.
Issue still pending with the Applet-Servlet communication.........
Any help would be appreciated..
THANKS IN ADVANCE
Joined: Mar 22, 2005
Does the code look more readable to you? Do you really not indent code?
Joined: Jan 11, 2010
Now that my Applet is able to talk to servlet.
I am able to see the System.out.println() 's with in my Servlet.
But with in my servlet,when i try to redirect it to some page it is not doing that.
Can youlook into this Ulf Dittmer
Can anyone help me out please...
Joined: Jan 23, 2003
I recently had some trouble in Applet servlet communication , in my case I found that Applet was not sending JSESSIONID back to servlet and because of that servlet was not able to get the appropriate session. I resolved the problem by making sure that JSESSIONID is always being passed from applet to servlet.
For more details you can view my blog.