• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Issues regarding Applet-Servlet communication

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can anyone helpme out please.................

Hi All................
I have few issues in our application development.
Can any one help me out if they are free.

problem is with the Applet Servlet 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.

Servlet code:
-------------------------------------------------


Thanks in Advance...

Plzzz help me out...
 
hareesh Puthala
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Iam really very sorry..

Small correction
onSendData() and getConnection() methods arein the applet in my previous post..
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
hareesh Puthala
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Issue still pending with the Applet-Servlet communication.........
Any help would be appreciated..
Please ASAP
THANKS IN ADVANCE
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does the code look more readable to you? Do you really not indent code?
 
hareesh Puthala
Greenhorn
Posts: 21
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
or
Can anyone help me out please...
 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

http://javaiscoool.blogspot.com/2011/05/appletswingflexj2me-to-servlet.html

I hope it works for you as well.

Thanks.
Sajjad Paracha
reply
    Bookmark Topic Watch Topic
  • New Topic