• Welcome to ComeFromChina Community (CFC中文网)! We are the largest Chinese Canadian community forum in Ottawa. Please to participate in discussions, post topics, view images, and access full community features. Join us today! 欢迎来到CFC中文网。请登录以参与讨论、发布主题并查看图片。

JAVA ^ CGI

  • 主题发起人 主题发起人 RE...
  • 开始时间 开始时间

RE...

知名会员
注册
2005-07-29
消息
64
荣誉分数
0
声望点数
116
虚心请教 这两者 到底有何本质区别
毕业论文 老师的 要求是用CGI 做 网页 而我是用 JAVA做的
结果老师不同 意 请问差别很大吗 我确实 不太明白CGI 是怎么回事
无论大家知道的多少 都给说点吧 这这里 先谢谢了
 
Java is a Programming language
CGI is a Pattern, can be written by many programming language

CGI can be written by Java, C, C++, perl....etc many programming language

I believe whats wrong is you did an Java applet, not CGI
 
If you are doing on web pages with Java, I think you are using JSP/Servlets. If so,

1. The JSP/Servlets must run in an J2EE web container, such as Tomcat,... But CGI just run in a http web server, such as an Apache Server.

2. JSP/Servlets and CGI, they are competitors each other. JSP/Servlets can do multi-thread in Web Server, but CGI can not. It means, an instance of JSP/Servlets can provide service to multi-user at the same time, but one loaded CGI just can only provide service to one user,.... big different performance on web server, ..... That's why Java is a winner right now.
 
CGI用perl做好。perl 是script language。

本身来生成html返回给浏览器。或者,还可以用xml来生成。你说的网站必须有脚本语言来把它动态化。
 
后退
顶部
首页 论坛
消息
我的