dcsimg
Accesing a serialized class.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Vineet_Billorey
Posted On:   Friday, December 10, 2004 09:23 AM

I am using Tomcat Web Server. In which directory I should store my Serialized class such that an applet and a servlet both can have access to it?

Re: Accesing a serialized class.

Posted By:   Anonymous  
Posted On:   Friday, December 17, 2004 02:09 AM

Servlet and applets run in totally different contexts, so you will - and should - separate those two:

  • For the servlet, put the class in a JAR deployed into tomcat, i.e. it must be "in the internal classpath" of tomcat.
  • For the applet, you must tell the applet that that class is in the codebase. Usually, you will put the JAR as a ressource on your webserver [like any gif etc.] and tell the applet in the calling HTML about the codebase.

Regards
Harald M.
About | Sitemap | Contact