Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

AppletList and Tomcat6


Back to:
www.javaworld.com/javaworld/javatips/jw-javatip101.html
.

Hi! I just happened across this site and found it to be the perfect solution for a problem that we had with our web app.

Something that I found that might help others that encounter this scenario is that Tomcat6 has some kind of security feature (?) built in that prevents applets from taking advantage of the AppletList unless they are of the exact same applet class.

AppletA -> AppletList -> AppletB = does not work in Tomcat6, AppletList is 2 different classes in both AppletA and AppletB (how weird is that!)

AppletA -> AppletList -> AppletA (other instance) works just fine, and they can both call methods on each other.

I was able to work around this problem by making AppletA serve 2 purposes, but others might have more difficulty with this. It might help if AppletA were a Factory for other Applets, but I didn't need to go that far.

Hopefully this helps, and if anyone has any ideas on why this is, or how to fix it, please let me know.

Thanks!
-Steven

Your rating: None Average: 5 (1 vote)