Meaningless Drivel is fun!
The moose likes Servlets and the fly likes Servlet- applets communication in jbuilderX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet- applets communication in jbuilderX" Watch "Servlet- applets communication in jbuilderX" New topic

Servlet- applets communication in jbuilderX

Adewale Adebusoye
Ranch Hand

Joined: Sep 28, 2005
Posts: 118
I am currently working on a web application using Borland JBuilder10. I am using servlets and an applet.Now in one of my servlet front -end HTML pages theres a hyperlink to call this particular applet, the problem is that the applet doesn't load.
However, when i run the applet in JBuilder it displays in the appletviewer, but when i run my project using tomcat, it fails to load my applet when i click on my hyperlink. What can i do?

"Human beings can alter their lives by altering their state of mind" William James
Heonkoo Lee
Ranch Hand

Joined: Feb 10, 2005
Posts: 85
Can you describe your web app directory structure on the server like where you put your applet class file?
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

The project is called NOTAP. JBuilder has created a folder for this. Inside NOTAP, i have the following folders:bak, classes, src, notapwebmodule(Where all my HTML files are) and tomcat.
in the classes folder we have 2 folders notap and notap2.
notap has all my class files including the one for my applet, which i've called upload. notap 2 has my main project class loginservlet.class.
src has all my java files, and the applet html, upload.html is also in the classes folder although it's one step above the class folders, notap and notap2. [banghead]

All the applet classes have to be accessible to the browser.
If they're under WEB-INF, the client won't be able to download them.
[ September 29, 2005: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Servlet- applets communication in jbuilderX
It's not a secret anymore!