|
|
|
|
|
|
k***r 发帖数: 4260 | 1 虽然网上一片B4声,JSP还是有很显著的优点哦,
是compiled的language,compiler可以多抓住一些bug;
同时是scripting language,很容易改。
虽说JSP很适合于one-off的项目,不太容易reuse,但是你
说来大部分web project,或者web project的大部分差
不多都是one-off的。
后来出来的试图代替JSP的Java framework,写code还是要
多不少才能做同样的事情。 | b******y 发帖数: 9224 | 2 For me, I like Apache Velocity template engine. I use it in a lot of places
and nice and simple.
JSP is good but just use caution. I've seen long JSP pages like 1000 lines
of java code and html, nasty. | k***r 发帖数: 4260 | 3 I haven't got a chance to try velocity yet. When I do,
I'll give it a try.
Yeah, it's always a good idea to put Java code in a servlet.
But good tools like eclipse really make embedding Java code
in JSP much less painful and prohibitive :-)
places
lines
【在 b******y 的大作中提到】 : For me, I like Apache Velocity template engine. I use it in a lot of places : and nice and simple. : JSP is good but just use caution. I've seen long JSP pages like 1000 lines : of java code and html, nasty.
| a*******n 发帖数: 237 | 4 试过好多的template engine, 觉得还是jsp简单实用 | i**e 发帖数: 6810 | 5 java + jsp deploy起来还是很麻烦啊
【在 a*******n 的大作中提到】 : 试过好多的template engine, 觉得还是jsp简单实用
| s*******e 发帖数: 3042 | 6
places
lines
Use taglib or leave those methods in helper classes, i also like jsp,
quick and dirty
【在 b******y 的大作中提到】 : For me, I like Apache Velocity template engine. I use it in a lot of places : and nice and simple. : JSP is good but just use caution. I've seen long JSP pages like 1000 lines : of java code and html, nasty.
|
|
|
|
|
|
|