Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

classes seems not to be excuting

 
Nidhi Nagre
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Nidhi Nagre
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Nidhi Nagre
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic