＜本文发表于: 相约加拿大:枫下论坛 www.rolia.net/f ＞
Do you mean that when you use the url
http://localhost:8080/servlet/com.jabber.ecommerce.HelloServlet in explorer, in fact , Tomcat will locate the file HelloServlet.class
in C:\jakarta-tomcat\webapps\Root\WEB-INF\classes\com\jabber\ecommerce\ ?
It just like the CGI method. We always put it into a path on the server which the user don't know.But the web server can find it .
I read many html files on sun web site,I researched how to run java programs in html. It looks similar like what I did in cgi. And I found servlet have more methods to pass data . It's interesting! And java has higher safe level !
oh, I don't understand what you said about "structure com.jabber.ecommerce", I think if your class file is HelloServlet.class, you java program must be HelloServlet.java ,isn't it?
I am a little confuse about it.
Would you tell me more about it ?
By the way, please tell me about more java web site, I want to research them. how about your application web server?＜本文发表于: 相约加拿大:枫下论坛 www.rolia.net/f ＞