aspose file tools*
The moose likes Applets and the fly likes classes seems not to be excuting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "classes seems not to be excuting" Watch "classes seems not to be excuting" New topic
Author

classes seems not to be excuting

Nidhi Nagre
Ranch Hand

Joined: Nov 05, 2007
Posts: 64
hello friends,

i really stuck around this annoying problem and hardly want to burn out all of the things.

all the applet classes embedded in a jsp page was working fine but suddenly this flow has been stopped. I mean, however all the applets appearing to embedded in jsp but code inside these(like event handler, System.out etc) is not taking any effect, when made to run from jsp side.
these classses are bundeled in a jar file.

this flow suddenly came in view, i cant figure it out?

please help. thanks
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Nidhi Nagre,

I'm having a difficult time understanding your question.
Maybe you could rephrase it.

From what I've gleaned so far, this sounds like more of an Applet issue than a JSP one. If this is so, let me know and I'll move this to our Applets forum.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Nidhi Nagre
Ranch Hand

Joined: Nov 05, 2007
Posts: 64
thanks Mr Ben

i was thinking too wheather should i post over applet's forum or jsp's.
but it sounds more like jsp.

suppose i made an japplet class and in which i written a button's onclick event handler. now i grasped it in a jar file aiming to run in a jsp page indeed i did all over.

now when i am runnign that jsp then the japplet class embedded successfully but when i click a next button over it then the event handeler code doesn't execute. while ther is neither any error nor any exception and warning at java console and server side.

everything was working fine on it's way but right now i can't understand what made the flow to turne around.

hope you understand
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41839
    
  63
Since both button and event handler are part of the applet, this seems to have nothing to do with JSP.

The first thing to do is find out why the event handler is not firing. Are you adding the class implementing ActionListener as a listener to the button?


Ping & DNS - my free Android networking tools app
Nidhi Nagre
Ranch Hand

Joined: Nov 05, 2007
Posts: 64
i have made a cross check over it putting a System.out statement inside applet's init() method of its working but this statement doesn't fire any output to sun java console in IE7.0 when loaded in jsp page.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

If the servlet is rendering in the browser, then the JSP has most likely done its job.

I'm going to move this to our Applets forum.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41839
    
  63
Originally posted by Nidhi Nagre:
i have made a cross check over it putting a System.out statement inside applet's init() method of its working but this statement doesn't fire any output to sun java console in IE7.0 when loaded in jsp page.


So the applet doesn't even get initialized? That means it wouldn't show any GUI - is that the case? But in that case there should definitely be a message in the browser status bar, and most likely in the Console, too.

By the way, it will probably be easier to debug the applet using appletviewer, instead of as part of a JSP page.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: classes seems not to be excuting