Simple Java Test project for a post
Problems encountered so far:
1, applet couldn't throw exception even the URLconnection name is not same
with the true URL of servlet, which is defined in web.xml
It's wield that the java.io.classNotFoundException won't be thown unless
we defined both the action to receive request and the action to get back
response in doPost(...) methos, and try to get the response from the applet side.
2, although I can sucessfully pass the testing code for DataAccessor in eclipse,
I failed in servlet.Because the servlet is run by webserver. The jdbc dynamic Link Library files are necessary if database access is involved in servlet.
How can I solve it?
It turns out to be easy, what we need to do is copy mysql-jdbc-bin.jar to
~/tomcat5/common/lib, and restart tomcat service, that's it.
3, always remeber to restart tomcat after you make any modification in the
servlet.The servlet classes will only be loaded during the startup of tomcat(?)
4, Always remeber to send the response back to applet from servlet, because
the applet always expect to hear something from you, even if the application
may not really need result. If you don't, the applet will freeze for long!