以下是要注意的问题:
1,注册完成后的24小时内是用不了空间的,24小时之后才能用上传.war包。
2,每6个小时,你的jsp空间的服务器会关闭,你只能再登录eatj,然后重启一下才行。
3,制作.war包:你用cmd先进入你的网页所在的文件夹下,然后输入 jar cvf XXX.war .(不要忘了最后这个".")
4,eatj有详细的教程,如果不懂,可以看看eatj的官方教程:http://www.eatj.com/index.jsp?url=getting_started.html
还不错,它提供有MYSQL数据库,并且可以直接在你电脑的DOS命令行上访问并操作数据库。它的TOMCAT服务器自带了驱动程序:org.gjt.mm.mysql.Driver
不过:基本上它每天都会自动断开服务,你必须每天登陆并重启服务器,而且五天不登陆就删除帐号。不过可以再申请,哈哈~~:)
所以只能作测试用。
1. Register an account at Click here.
2. You need to select your user name and specify your email (preferably a gmail or a yahoo mail address). The user name is also your application ID (appID) and your MySQL database name. Your subdomain name will be <appID>.s43.eatj.com, <appID>.s42.eatj.com or <appID>.s41.eatj.com. For example, if your user name is john: your appID is john, your MySQL database name is john and your subdomain is john.s43.eatj.com or john.s41.eatj.com.
3. You will recieve a confirmation e-mail. Once you click the link in your email, your account will be created. If you didn't recieve the e-mail, please e-mail us support@eatj.com.
4. Login to your account. Click Start to start your Tomcat server.
5. In your browser, type http://<appID>.s43.eatj.com, http://<appID>.s42.eatj.com or http://<appID>.s41.eatj.com (for example, http://john.s43.eatj.com). You will see your Tomcat home page.
6. Download the sample war file, ROOT.war.
7. From 'My Account,' upload the WAR file (ROOT.war) you just downloaded. Make sure it has ".war" file extension. If it has ".war.zip", remove ".zip".
8. Wait till the upload finishes, then type http://<appID>.s43.eatj.com, http://<appID>.s42.eatj.com or http://<appID>.s41.eatj.com in your brower, and you will see the sample home page. If you cannot see sample page, restart your Tomcat server.
9. To make your first JSP page work, you download sample.zip.
10. Unzip the sample file to a temporary location, like "C:\temp\mysample"
11. In "C:\temp\mysample", rename "hello.jsp.bak" to "hello.jsp".
12. If you did not install J2SE, download it from http://java.sun.com/j2se/index.jsp (you must use J2SE 5.0).
13. In the command line prompt, and while in "C:\temp\mysample", type "jar cvf ROOT.war ." to create a ROOT.war file.
14. Upload the ROOT.war file (ROOT.war is case-sensitive; it must be upper-case).
15. Type http://<appID>.s43.eatj.com