×

Loading...

I suggest you first forget about JSP things

本文发表在 rolia.net 枫下论坛Dear AlwaysGreen,

I suggest you first learn servlets. After you are familiar with servlets, come back to learn JSP. JSP is based upon servlets.

1) There are some Java debugging tools, but I seldom use them. Java error messages are easy to unserstand, so it is a better idea to learn what's wrong from error messages.

2) javax.servlet.* and javax.servlet.http.* packages are hidden in C:\jakarta-tomcat\lib\servlet.jar. Tomcat can run servlets because it can load these libraries. Otherwise, .....

3) As you compile your servlet, you should add C:\jakarta-tomcat\lib\servlet.jar to the CLASSPATH. Otherwise, you cannot pass
the compiler

4) I cannot agree on your points of view about Windows 2000, Linux, NT, 95/98.
Linux is hot in China because of China's
special circumstances. According to my experiences, one has little luck in doing server-side programming if he/she uses 95/98. Since I began to teach people, I have been telling poeple to throw away 95/98.
95/98 are only nice to housewives and kids----they just use 95/98 to connect to internet.

5) Java is both a lanaguge and platform.
Configuring system is not easy to learn.

6) package issues. Let me say you have succeded in compiling a servlet with a package structure com.jabber.ecommerce,
and its classname is HelloServlet.
ACTUALLY, its fullname is com.jabber.ecommerce.HelloServlet.
To run it in Tomcat, you should but it
as C:\jakarta-tomcat\webapps\Root\WEB-INF\classes\com\jabber\ecommerce\HelloServlet. (Is your head becoming bigger??? ;-):)
To access it, you need hit the following URL:
http://localhost:8080/servlet/com.jabber.ecommerce.HelloServlet. I hope you are not overwhelmed...

7) Just a friendly piece of advice. NO question is stupid. Most poeple in this formum is patient and nice.. The usage of English is different from that of Chinese. You may say...
sorry for bothering again... sorry for occupying your time... But please do not ask others to have more patience. This can lead to misunderstanding ---- it seems you think poeple are impatient. Of course, I understand waht you mean because I am a native Chinese speaker.

8) To run Java, you may need have more RAM. At least you need have 128 MB.
64MB can run tomcat but that's all.

9) Be sure to get the manual under ..\uguide\.
Be sure to print out FAQ about tomcat which you can get from www.apache.org.

good luck.更多精彩文章及讨论,请光临枫下论坛 rolia.net
Report

Replies, comments and Discussions: