由买买提看人间百态

topics

全部话题 - 话题: jsp
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
y***e
发帖数: 39
1
来自主题: Java版 - JSP技术简介 [fwd]
http://www.shinco.net/jjx/activeubb
一、 JSP 技术概述
作 者 : 仙人掌工作室
在 Sun 正式发布 JSP(JavaServer Pages) 之后,这种新的
Web 应用开发技术很快引起了人们的关注。 JSP 为创建高度动态的
Web 应用提供了一个独特的开发环境。按照 Sun 的说法, JSP 能够
适应市场上包括 Apache WebServer 、 IIS4.0 在内的 85% 的服务
器产品。即使您对 ASP “一往情深”,我们认为,关注 JSP 的发展
仍旧很有必要。
㈠ JSP 与 ASP 的简单比较
JSP 与 Microsoft 的 ASP 技术非常相似。两者都提供在 HTML
代码中混合某种程序代码、由语言引擎解释执行程序代码的能力。在
ASP 或 JSP 环境下, HTML 代码主要负责描述信息的显示样式,而
程序代码则用来描述处理逻辑。普通的 HTML 页面只依赖于 Web 服
务器,而 ASP 和 JSP 页面需要附加的语言引擎分析和执行程序代码
。程序代码的执行结果被重新嵌入到 HTML 代码中,然后一起发送给
t********k
发帖数: 808
2
几个JSP页面向servlet发出请求
处理完后要运行不同的JSP页面(就是那个JSP页面相同目录里的另外一个页面,文件名一样)
不想再在jsp里传进一个标志符,再在servlet里进行判断应该执行哪个页面
比如1.jsp调用了/servlet1
在servlet1里,怎么知道1.jsp的路径呢?
我要在servlet1里调用1.jsp相同目录下的另一个jsp页面
谢谢
m**c
发帖数: 90
3

The sample contains 4 files:
1. frameset.jsp -- frameset
2. content.jsp -- main content frame (this the JSP page you want to display)
3. blank.html -- initial page used inside hidden frame
3. hidden.jsp -- hidden frame
frameset.jsp:

marginheight="0" scrolling="no" frameborder="0">
marginheight="0" scrolling="no" frameborder="0">
j***c
发帖数: 2
4
来自主题: Java版 - session lost between JSP and Struts
I have a login.jsp page and it directs to welcome.jsp page. Inside welcome.jsp
page, it has one link to call struts action and another link to call another
jsp. All jsp and struts are running within the same browser.
However, I debug and find struts one always creates a new session, because I
print out its session id and the id is different from the one in welcome.jsp.
The jsp one still keeps the same session (session id). Weird to me. I am using
tomcat 5.5.17.
Any idea about where I should chec
z*******g
发帖数: 132
5
看了些东东,还没明白, 我想import javax.servlet.* 怎么找不到呢。。。
————
在这个专题中我们由浅入深地向大家介绍Java Servlet的基本特征、开发环境的配置
以及Servlet的一些主要API类。
Servlet是一种独立于平台和协议的服务器端的Java应用程序,可以生成动态的Web页面
一、概述
Servlet是一种独立于平台和协议的服务器端的Java应用程序,可以生成动态的Web页面。
Servlet是位于Web 服务器内部的服务器端的Java应用程序,与传统的从命令行启动的
Java应用程序不同,Servlet由Web服务器进行加载,该Web服务器必须包含支持Servlet
的Java虚拟机。
Java Servlet 与 Applet 的比较:
相似之处:
* 它们不是独立的应用程序,没有main()方法。
* 它们不是由用户或程序员调用,而是由另外一个应用程序(容器)调用。
* 它们都有一个生存周期,包含init()和destroy()方法。
不同之处:
* Applet具有很好的图形界面(AWT),与浏览器一起,在客户端运行。
* Serv... 阅读全帖
s********e
发帖数: 465
6
过来人说一下,
申请时没很期待,没想到一下拿到,纯粹是天上掉馅饼了。
国费拿到DC2的JSPS,舍不得国费的特殊待遇,犹豫很久,最后还是选了JSPS。
国费要自己辞退,因为JSPS的表格里有一项说国费必须要辞,所以就辞了。
因为不是国费了,所以要交学费,还要找老板写推荐信申请减免,参加面试,面试老师
说,怎么看你也不像收入少啊,无言以对,那时政策松,最后半免。
签证还是学生签证,第2年毕业了成了博士后才改为教授签证。
别的和国费没有大区别,每月大概比国费多几千日元,算上交学费,第一年亏本。
每年搞了100万经费,自己签字买东西报销,老板只有建议权,当然基本上还是听他的
,但也很爽,也可以拿了单子去学校的生协买文具啥的。
很难拿,咱那年看来外国人的DC的JSPS一共才10几个,以前住一个寮的另一个中国人小
伙子也拿到了。外国人拿到了,懂行的教授会觉得你很棒,不懂行的会以为和JSPS的外
国人博士后一样。国内的教授都不知道和他们常见的外国人JSPS有啥不同。
r*****s
发帖数: 985
7
或者tomcat的CLASSPATH应该怎么设?
An error occurred at line: 1 in the jsp file: /jsp/GetName.jsp
Generated servlet error:
/.../jsp/GetName$jsp.java:56: Class org.apache.jsp.UserData not found.
UserData user = null;
^
Here I defined a class UserData. Where should I put it to? I just installed
a new tomcat 4.0.3. I haven't changed any path yet.
请大虾们指教! 多谢了.
S****h
发帖数: 558
8
来自主题: Java版 - jsp和j2ee什么关系?
Yeah. Nowadays, mostly, web layer with jave technology would be java +
jstl(part of jsp). I rarely use embedded java code in jsp like what most old
jsp books would show. No serious programmer will use jsp with lots of
embedded java code. So not really a good starting point at all.
JSPs are all translated into sevlets automatically by jsp container (tomcat/
jetty/google app engine) first. Then those generated sevlets are run along
with the sevlets you write by hand.
m*******e
发帖数: 41
9
来自主题: BuildingWeb版 - anyone know jsp, help me
Here is my jsp file and I defined Login.java class under WEB-INF/classes/
users. But when I compile it, I get the error:
The value for the useBean class attribute users.Login is invalid.
What is wrong? Please help me. Here is my jsp code:
<%@ page import="java.util.*" %>



<%
String username = request.getParameter("username");
String password = request.getP
y***e
发帖数: 39
10
来自主题: Java版 - JSP for the ASP Developer
Java Server Pages for the ASP Developer
JSP (Java Server Pages) is similar to ASP, the difference
being that the code embedded between the <% and %> tags in
JSP is exclusively Java. According to Sun Microsystems, JSP
works with 85% of the market including Apache WebServer,
NetscapeTM, and Microsoft IIS 4.0 (with required pluggins
from IBM's WebSphere, LiveSoftware's JRun or New Atlanta's
ServletExec).
JSP does require plug-ins on IIS, so there aren't too many
ASP developers running to the JSP ar
n*****k
发帖数: 123
11

Jbuilder
server
This is a design concern, what I will do is, using whatever html web designer
to code html, and then include the html file by include directive in jsp, code
in this way so you do not have to modify the jsp file if there is any change
in you html code, however, if you must mix html and jsp code together, just
copy the related part into jsp file and use include or forward if necessary.
t****g
发帖数: 14
12
来自主题: Java版 - Help me: jsp tag 问题
Tags can be of two types: external tag library, or predefined tags.
Predefined tags start with jsp: characters
J2EE Tutorial 里面接二连三的冒出下面的东西,
jsp:element,
jsp:root,
jsp:output
jsp:attribute
请问到哪里找关于这些Predefined tags 的 reference 文档?
c*****s
发帖数: 214
13
基本概念有问题
jsp是服务器上运行的程序,运行的结果是html文本流,从服务器流到你机器上的浏览器
。流内容是什么,html还是javascript还是图片,服务器统统没概念。
javascript是放在html里的脚本。浏览器接收到文本流后,浏览器认识html和javascript
。知道怎么画怎么运行javascript。到浏览器的输入只是文本流,对服务器上运行过什么
东西不知道。
回到你的问题。javascript当然不能告诉jsp什么东西。当javascript运行的时候,jsp早
就执行过了。浏览器通过form通知服务器, 你可以用javascript控制form内容然后递交。
前面的问题也一样。javascript当然不能直接访问JSP。服务端可能是JSP或任何语言,而
当javascript执行时那些程序早运行完了。它的输入完全来自浏览器上拿到的html文本。
mkac的方法是用javascript建立自己的数组,填充内容的程序部分是在服务端准备好的文
本,这样控制数组的值。但绝不是真的在javascript里访问到了服务端的java对象。
w***y
发帖数: 6251
14
现在出了个新问题
Generated servlet error:
/usr/share/tomcat5/work/Catalina/localhost/_/org/apache/jsp/query_005ffmi_jsp.
java:11: error while writing org.apache.jsp.query_005ffmi_jsp: /usr/share/
tomcat5/work/Catalina/localhost/_/org/apache/jsp/query_005ffmi_jsp.class (
Permission denied)
public final class query_005ffmi_jsp extends org.apache.jasper.runtime.
HttpJspBase
这个错误是跟database交互的jsp文件都会出的, 一般的jsp文件都没有:((
w***y
发帖数: 6251
15
现在排除了这个可能,因为有的访问是可以的,但是有的不可以,我彻底晕菜了
而且很让我ft的是,这些都是以前work的,我暑假走了一个月,回来他们就告诉我不能
用了,但是没有人动过这些codes 我想可能还是系统的一些毛病吧,气死我了
log文件里完整的错误信息是这样的
2005-08-24 18:33:53 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
/usr/share/tomcat5/work/Catalina/localhost/_/org/apache/jsp/search_005fprotein
_jsp.java:11: error while writing org.apache.jsp.search_005fprotein_jsp: /usr/
share/tomcat5/work
y********o
发帖数: 2565
16
来自主题: Java版 - JSP translation unit?
Ok, thx.
I got the following from http://www.techinterviews.com/?p=92 , but honestly, I don't quite understand the explanation. In particular, is a translation unit necessarily related to jsp include?
What is a translation unit? JSP page can include the contents of other HTML
pages or other JSP files. This is done by using the include directive. When
the JSP engine is presented with such a JSP page it is converted to one
servlet class and this is called a translation unit, Things to remember in
l******b
发帖数: 4
17
找了一个东北大学的老板,跟他一起申请了jsps博士后奖学金。
想问下到底申请通过率有多少。我是材料,化学方向的。现在韩国留学。
另外,申请JSPS之后,能找下家吗?现在申请了JSPS又怕其他地方给offer的时间早于
JSPS的公布时间,即8月中旬。可实在是公布时间太晚了。
sigh,不好意思另外申请职位,怕rpwt,想问问大家,帮忙出出主意。
h*****l
发帖数: 184
18
来自主题: BuildingWeb版 - [转载] JSP是不是比ASP强大?
【 以下文字转载自 Programming 讨论区,原文如下 】
发信人: hanibal (汉尼拔), 信区: Programming
标 题: JSP是不是比ASP强大?
发信站: The unknown SPACE (Thu Oct 17 20:22:44 2002) WWW-POST
一些比较好的网站, 用的都是jsp,
象half.com, citibank....
选用JSP还是ASP, 有什么讲究吗?
另外, ASP已经发展到.net了,
JSP有和新发展?
谢谢!
h*****l
发帖数: 184
19
来自主题: Internet版 - [转载] JSP是不是比ASP强大?
【 以下文字转载自 Programming 讨论区,原文如下 】
发信人: hanibal (汉尼拔), 信区: Programming
标 题: JSP是不是比ASP强大?
发信站: The unknown SPACE (Thu Oct 17 20:22:44 2002) WWW-POST
一些比较好的网站, 用的都是jsp,
象half.com, citibank....
选用JSP还是ASP, 有什么讲究吗?
另外, ASP已经发展到.net了,
JSP有和新发展?
谢谢!
F******y
发帖数: 1988
20
Hi friends,
There are a couple ways known to pass values from js/html to jsp.
1. jsp:setProperty ....
2. httpsession
However, in a jsp page like


I want to pass the user's selection value (e.g. group1) to jsp and
retrieve the members names of
w*******o
发帖数: 6125
21
来自主题: Java版 - 关于Jsp timeout
当session timeout时,跳到timeout.jsp,并提供Click Here to login again
连接返回login.jsp,并能成功登陆。问题是,如果用户click IE的Refresh button,页面
同样返回login.jsp,但此时登陆,仍然返回timeout.jsp,登陆不成功,
不知道有没有人遇到类似情况,是否可以在web.xml什么的设置redirect
的target?(Tomcat 4.1)
y********o
发帖数: 2565
22
来自主题: Java版 - JSP translation unit?

have
part
Yes, all JSP pages are converted into Servlet, right?
How about this, does a single JSP page without any include elements
constitute a translation unit?
How many translation units are there if a JSP page has one dynamic include?
How many translation units are there if a JSP page has one static include?
Maybe answers to these questions will crack the mystery.
m******o
发帖数: 774
23
来自主题: Java版 - what's wrong with this little jsp?
Guys, I'm playing with Spring 3.0 but this little jsp keeps getting an error
that I could not figure out:
<%@ page import="com.mcnz.spring.*, org.springframework.context.*, org.
springframework.web.context.support.*"
contentType="text/html; %>
<%
ApplicationContext beanFactory = WebApplicationContextUtils.
getRequiredWebApplicationContext(getServletContext());
ClickCounter counter = (ClickCounter)beanFactory.getBean("clickCounter",
ClickCounter.class);
String clickedButton = request.getParameter... 阅读全帖
t***a
发帖数: 416
24
来自主题: Java版 - jsp和j2ee什么关系?
其实java的web服务基本都是通过servlet来实现的,不过jsp作为一种早期表现层技术
,实现的比较简单粗暴,就是直接转换成servlet了,当然这性能的确是比较好,但是
这造成很多程序员在jsp里写大量的业务逻辑代码,你可以想象一个页面里又有html,
js, css,还有一堆tag-lib和java代码是多么的恶心。
对于一个jsp页面来说,你可以把它想象成为一个servlet, 这也就是说它是有
container的,是一个实例存在那里,这就和php有不同了。
个人觉得java的web技术初学者起步比较困难,需要掌握的技术太多,如果你就想做网
站玩,python和ruby都是好选择。如果坚定的就想搞java,可以从spring struts
hibernate开始玩,直接写jsp裸奔,容易养成不好的代码习惯。
t**********h
发帖数: 2273
25
jsp,和java没有区别,本质上。解析之后是一样的。很多web项目都会用到jsp。不过
现在前端技术多,jsp啊,as啊,可以选的很多。后端用java是个趋势,简单易用,适
合智商不高的民工快速上手,很多大公司都喜欢大批量招这种民工
什么类型的项目都有
y****i
发帖数: 9
26
来自主题: Japan版 - 关于JSPS博后申请的问题!
周一发了些email申博后,收到两个教授回复说自己实验室目前没有空位,但愿意做
host researcher让我申JSPS博后。一个是东北大学的绝对大牛级,一个是东京大学的
准大牛级。有点挣扎不知道选择哪个教授好,因为听说JSPS申请和所属教授的知名度有
很大关系,所以觉得东北大学的教授可能把握高些,可是相比仙台,东京大学的地理位
置比较有吸引力,可能以后就业也方便些。
再有关于JSPS的申请,我给教授写信问需要准备哪些document和怎样的一个步骤,教授
让我自己到网站看。看了一下,好像只有一个form2是需要我填的,但是里面有一个
research plan比较重要。所以是不是应该先大概向教授陈诉一下自己想做的研究内容
,讨论一下在其实验室实行的可行性,确定后写一个plan draft寄给教授修改。 等
final version定稿后,把form2交给教授。剩下的就由教授那边来申请了,是不是这样
一个程序?
5月初就要交申请了,时间挺紧的。大家给指导指导!多谢!
h*******l
发帖数: 153
27
来自主题: Japan版 - JSPS日本的postdoc怎么样?
【 以下文字转载自 Postdoc 讨论区 】
发信人: happysoul (happyeveryday), 信区: Postdoc
标 题: JSPS日本的postdoc怎么样?
发信站: BBS 未名空间站 (Sat Feb 6 03:24:27 2010, 美东)
现在的老板和日本东京大学的老板关系较好,让我申请jsps.但是我有点想申请美国的或
英国的.请问有人了解JSPS奖学金吗? 它和去美国university top30的,或英国帝国理工
相比,
好还是不好?
谢谢
u*********n
发帖数: 864
28
现在改了,JSPS DC期间拿到的contract都要换成教授签证了,不再是学生签证了。我
个人也觉得JSPS要拿到运气占很大成分,毕竟是全日本所有博士都能申请。难度不好比
,没申请过国费,但是觉得JSPS很难。
s*****y
发帖数: 509
29
jsps的部分是taxable income;
阿,dc1的朋友,每月国保也就2000,没改签证,就不知是留学身份的作用还是jsps的
作用;
jsps薄厚的朋友,没好意思问。
F**e
发帖数: 593
30
来自主题: SanFrancisco版 - 这个是JSP的什么技术 (转载)
【 以下文字转载自 Java 讨论区 】
发信人: Fine (蛋定), 信区: Java
标 题: 这个是JSP的什么技术
发信站: BBS 未名空间站 (Fri Apr 16 01:21:21 2010, 美东)
好多年没碰JSP了,不懂现在这些是怎么work的。
在一个jsp file里有这样一段code:
${object.name}

这个$里面的是什么东西啊,这个算是struts吗?JSTL?一点概念都没有。如果我要对这
个${object.name}变量做些处理怎么整?比如说我想做对这个变量一些regex和其他一
些处理。
先谢了。
k*******y
发帖数: 219
31
【 以下文字转载自 Java 讨论区,原文如下 】
发信人: kilorocky (Arbeit macht Frei), 信区: Java
标 题: sigh,找个支持JSP的虚拟主机怎么就恁地难?
发信站: The unknown SPACE (Mon Jun 10 09:20:12 2002) WWW-POST
感觉好像各大网络公司都要把JSP赶尽杀绝
方肯罢休,有支持JSP的,但不是价格无比
贵(比ASP贵1000块每年),就是提供虚拟
主机的公司看起来很野鸡。
真郁闷,看来不能不选后者了,就算是火坑,
咱也得跳一回了,谁让咱没钱呢?
q******n
发帖数: 35
32
来自主题: BuildingWeb版 - [转载] 问一个有关TOMCAT+JSP的问题
【 以下文字转载自 Internet 讨论区 】
【 原文由 qiongwen 所发表 】
我用的是:TOMCAT+JSP
当我的jsp文件长度短的时候,没有任何问题
可是,当jsp的代码已超过138行,立刻就出错,大家知道这是为什么吗?
谢谢
m*****g
发帖数: 8
33
来自主题: Database版 - HELP!!!Connect to MySQL in JSP
Thx man, in .jsp, the system return me the java-class-path is
{Tomcat_Home}/lib/tomcat.jar, instead of mm.mysql.jar in the same directoy.
Also, in profile , i set classpath to {Tomcat_Home}/lib/ and to
{Tomcat_Home}/lib/mm.mysql.jar, but not {Tomcat_Home}/lib/tomcat.jar.
And when i try this statement in .java file, it returns all paths which i set
in profile's classpath.
Again, when i move the driver to {my-jsp-home}/WEB-INF/lib/, which makes .jsp
link mysql working well as .java does, the syste
w***y
发帖数: 6251
34
来自主题: Database版 - JSP access database的问题
老板打算用JSP做一个访问数据库的东西,现在的数据库暂定用postgres做
我调研了一下,好像是需要一个JSP engine才能访问数据库的,请内行们指点
一下到底是什么样的JSP engine, 如果有文档推荐一下更好了
我在网上search到一个东西http://www.chinaunix.net/jh/4/281013.html
不知道里面说的tomcat是啥!@#$%
我光安装postgres就费了半天劲,差点把linux都重装了:( 机器太老了,
不然就装oracle,懂的人多资料也多。
//bow
g*****g
发帖数: 34805
35
For your reference, JSP is compiled to servlet before
running. However, it's supposed to be in presentation tier
in J2EE structure. You'd better put your logic in an servlet
for C/S or EJB if it's 3 tiers.
In a work applet+JSP works, better not put logic in JSP.
l***r
发帖数: 459
36
来自主题: Java版 - Swing GUI vs JSP Web Solution
Here is another argument on Swing GUI vs JSP Web Solution.
We have lots of client application made by Swing GUI. In order to support both
Unix and window, we have to save our jar to different location though they are
the same. We are thinking about if we should move to JSP/Servlet web solution
so that we only maintain one copy in one location. But I am not very strong on
web solution. I wonder if JSP/Servlet+JavaScript can fully implement Swing GUI
very well, like those listener, thread ...
Than
s******e
发帖数: 63
37
assume your jsp page is called group.jsp

.....

......
e***g
发帖数: 158
38
来自主题: Java版 - JSP is rubbish!

well then it's not JSP problem, rather javac. nowadays nobody write
that kind big source file anyway. try break your JSP into subpages, and
use dynamic includes.
that being said, JSP IS rubbish, I agree, for a handful reasons.
w***y
发帖数: 6251
39
【 以下文字转载自 Database 讨论区 】
【 原文由 woomy 所发表 】
老板打算用JSP做一个访问数据库的东西,现在的数据库暂定用postgres做
我调研了一下,好像是需要一个JSP engine才能访问数据库的,请内行们指点
一下到底是什么样的JSP engine, 如果有文档推荐一下更好了
我在网上search到一个东西http://www.chinaunix.net/jh/4/281013.html
不知道里面说的tomcat是啥!@#$%
我光安装postgres就费了半天劲,差点把linux都重装了:( 机器太老了,
不然就装oracle,懂的人多资料也多。
//bow
c**g
发帖数: 274
40
tomcat 之于jsp 就好比 apache 和cgi. 如果你想用cgi(or pure html)
你得有个web server, 你要用jsp 就得需要jsp/servlet container.
联数据库需要一个JDBC driver.
发点不相干的感慨,计算机真是low tech啊,我是说相比杀猪,当年
我们家那杀猪也是至少一年才出徒,没听说给发把刀就完事,这计算机倒好,
管你以前见没见过计算机跑,听没听过计算机哼哼,三天搞不定人
准觉得你是白痴。
T*****e
发帖数: 361
41
来自主题: Java版 - JSP tag file and EL warnings
I have been annoyed by several hundred warning messages generated by
Eclipse (3.2.2) WTP (1.5.3, Dynamic Web Project). There are two major sets
of warnings, one for JSP tag files ("Unknown tag") and the other for "EL
Syntax Error".
My project structure is:
/
|- src (for all java source files, including servlets)
|- web
|- images
|- scripts
|- styles
|- ...
|- resources (JSP files for serving AJAX calls)
|- services (JSP files)
|- ...
|- WEB-INF
|- classes
m******t
发帖数: 2416
42
来自主题: Java版 - JSP translation unit?
Well, from the quote you posted,
"When the JSP engine is presented with such a JSP page it is converted to
one servlet class and this is called a translation unit, ..."
I guess that's what a translation unit is. 8-)
If I understand it correctly, what it's trying to say is that when you have
static includes, they are dealt with at translation time, hence become part
of the same translation unit formed by the jsp including them.
Don't know whether the concept makes sense with request-time includes
m******t
发帖数: 2416
43
来自主题: Java版 - JSP translation unit?

I would think so. The criteria is pretty clear - whatever gets compiled into
one servlet is one unit. So any single jsp, as long as it's not included by
another (i.e. not a jsp fragment), it's a translation unit.
Dynamic includes get "included" at request-time, so they don't have to do
with translation at all.
Still one, I would think. A spec compliant jsp compiler would include the
fragment verbatim, and then do the compilation.
m******t
发帖数: 2416
44
来自主题: Java版 - JSP translation unit?

Well... you could say that, and nobody can say you are wrong, but there is
the subtle point that a dynamic include can in fact be including the
response of any URL, which isn't necessarily a JSP, or, in turn, a "
translation unit" at all.
In fact, we all need to be a little careful with the terms "static" and "
dynamic" here. There is the "static vs. dynamic" as in "a static html page
vs. a dynamic jsp", and then there is the "translation-time vs. request-time
" as in "a jsp gets translated int
l****u
发帖数: 2166
45
来自主题: Java版 - Tomcat JSP syntax error
o. Not about the fixing of the compilation.
We have group of site designers they only develops JSP pages but
knows little about java.
What they complain is that when they wrote JSP, they could not have any clue
where is the JSP is wrong, they want to see the error message on their
browser.
they have no clue about what is printed to the tomcat console...
k***r
发帖数: 4260
46
来自主题: Java版 - 其实JSP也不错
虽然网上一片B4声,JSP还是有很显著的优点哦,
是compiled的language,compiler可以多抓住一些bug;
同时是scripting language,很容易改。
虽说JSP很适合于one-off的项目,不太容易reuse,但是你
说来大部分web project,或者web project的大部分差
不多都是one-off的。
后来出来的试图代替JSP的Java framework,写code还是要
多不少才能做同样的事情。
k***r
发帖数: 4260
47
来自主题: Java版 - 奇怪的 JSP 土问题
I have some form handling code. The form posts to the
current URL.
So I have these two lines at the early part of the JSP file:


...

But I always get complaint from eclipse at "%>" for
the code below:
Multiple annotations found at this line:
- Syntax error, insert ")" to complete Expression
- Syntax
z***e
发帖数: 5393
48
【 以下文字转载自 Programming 讨论区 】
发信人: zlike (最终幻想), 信区: Programming
标 题: PHP/JSP/ASP等页面语言应该被慢慢抛弃了吧?
发信站: BBS 未名空间站 (Mon Apr 25 02:46:57 2011, 美东)
越来越认为这些 xxx page语言都应该慢慢被deprecate掉,我认为未来的web就是完全的
client直接和各种service的交互,server只返回数据,至于client是要生成html还是
在iphone/android/PC/Mac上显示,由client去决定,唯一需要的可能就是一个http
协议用来传送json数据。
使用php/jsp/aspx来构造html,只是为了简单方便而已,我是这样认为。原则上可以说
这样
开发效率较快,但是反过来说你还要找专门开发php/jsp/asp的developer,开发环节多
了,
很可能更慢。
但是如果minimiaze php这个层面,就断了公司里面php developer的生路,又不好在公
司里面
对其他人表达我这个看法。
各位觉得呢?
q*********u
发帖数: 280
49
。。。。

【 以下文字转载自 Programming 讨论区 】
发信人: zlike (最终幻想), 信区: Programming
标 题: PHP/JSP/ASP等页面语言应该被慢慢抛弃了吧?
发信站: BBS 未名空间站 (Mon Apr 25 02:46:57 2011, 美东)
越来越认为这些 xxx page语言都应该慢慢被deprecate掉,我认为未来的web就是完全的
client直接和各种service的交互,server只返回数据,至于client是要生成html还是
在iphone/android/PC/Mac上显示,由client去决定,唯一需要的可能就是一个http
协议用来传送json数据。
使用php/jsp/aspx来构造html,只是为了简单方便而已,我是这样认为。原则上可以说
这样
开发效率较快,但是反过来说你还要找专门开发php/jsp/asp的developer,开发环节多
了,
很可能更慢。
但是如果minimiaze php这个层面,就断了公司里面php developer的生路,又不好在公
司里面
对其他人表达我这个看法。
各位觉得... 阅读全帖
a*******m
发帖数: 626
50
请注意php不只是一种页面语言,而是一种功能完整的脚本语言。
php有着和perl或python一样的使用场合和使用能力,只是因为在web开发这块用的最多
,才造成了这样的偏见。

【 以下文字转载自 Programming 讨论区 】
发信人: zlike (最终幻想), 信区: Programming
标 题: PHP/JSP/ASP等页面语言应该被慢慢抛弃了吧?
发信站: BBS 未名空间站 (Mon Apr 25 02:46:57 2011, 美东)
越来越认为这些 xxx page语言都应该慢慢被deprecate掉,我认为未来的web就是完全的
client直接和各种service的交互,server只返回数据,至于client是要生成html还是
在iphone/android/PC/Mac上显示,由client去决定,唯一需要的可能就是一个http
协议用来传送json数据。
使用php/jsp/aspx来构造html,只是为了简单方便而已,我是这样认为。原则上可以说
这样
开发效率较快,但是反过来说你还要找专门开发php/jsp/asp的developer,开发环节... 阅读全帖
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)