 |
Cool New Features in JSP 2.0
Posted by horwat on June 12, 2003 at 03:52 PM | Comments (8)
Earlier this week I was able to attend the JSP 2.0 session and learn about
its cool new features. There are so many changes that it certainly warrants
the major version number upgrade.
Mark Roth, the "wizard"
of JSP, began his presentation with a funny
pink brains and pacifiers analogy. The brains and pacifiers represented
the different user types. He had a table with brains and pacifiers that amused
me immensely. The table showed how the learning curve of JSP 2.0 is lower than
JSP 1.2.
One of the cool new features that's available in JSP 2.0 is an integrated expression
language. JSP Standard Tag Library (JSTL) 1.0 introduced the concept of the EL but it was limited to only
the JSTL tags. With JSP 2.0 you can use the EL with template text. You even
get programmatic access via javax.servlet.jsp.el. This powerful feature has
now been truly unleashed.
JSP 2.0 also makes it much easier to write custom tags. You now get simple
tag extensions with a simpler tag handler API and you only have to implement
one easy doTag() method. Simple.
Another thing that I found really cool is the new concept of tag files. These
tag files allow you to quickly write simple tag extensions using only jsp syntax.
This really empowers page authors who may not be familiar with java development.
Now you only need to just drop a .tag file in /WEB-INF/tags and you're done.
There are many more new features available in JSP 2.0. Download
it and give it a whirl.
Bookmark blog post: del.icio.us Digg DZone Furl Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment
-
Tag Files
The JSP Tag Files do look very powerful. Thanks for the pointer!
Posted by: js on June 12, 2003 at 11:30 PM
-
JSP 2.0 issues
The new JSP 2.0 features do indeed look very interesting. However, they won't be of much use to me until all the vendors do some serious optimizations. Taglibs are still slow in many appservers and the new query language will likely use introspection. It simply won't scale to a high volume site. :(
-Matt
Posted by: mattjive on June 16, 2003 at 10:18 PM
-
New feature in JSP 2.0
There is one stuff that I think very usefull in JSP 2.0 : you can define dynamic attributes.
One think it should be included is a method "setTagName" then it would be possible to use the same bean to implement several tags.
Posted by: phoforjob on June 17, 2003 at 03:11 PM
-
tag libraries without prefix
If tag libraries were enabled to not use a prefix, we could overwrite the standards HTML tags like INPUT or SELECT to our tag libraries.
Then we could use our own HTML editor to create dynamic JSP pages without needing to add a custom tag.
I dont know why Its not possible, but today I'm doing it with Tomcat. I just changed the JSP compiler to accept tag libraries without prefix
Posted by: ebengtso on June 18, 2003 at 01:59 AM
-
Another suggestion to the new version
TLD attribute
Today, we do like this
attribute
false
true
My suggestion is add one more parameter to the attribute:
attribute
attributeinbean
false
true
The will be responsible to map the Bean Field(Attribute) to the JSP attribute
A sample
JSP:
Tag class:
private String attributeinbean;
public void setAttributeinbean(String string) {
attributeinbean = string;
}
public String getAttributeinbean() {
return attributeinbean;
}
In this case, you can write in the JSP with a name, and in the bean, with other name. It will resolve its problem:
JSP:
= Error
Today you can not do it in JSP Tag Libraries, because of the setter and getter class.
Take a look in one more sample:
class
clazz
false
true
JSP:
Tag class:
private String clazz;
public void setClazz(String string) {
clazz = string;
}
public String getClazz() {
return clazz;
}
Posted by: ebengtso on June 18, 2003 at 02:01 AM
-
tag libraries without prefix
I would like to use tags without prefix. How did you do that?
Posted by: lcmuniz on April 27, 2004 at 12:03 PM
-
网络营销软件
网络营销软件
网络营销软件
群发软件
群发软件
---
群发软件
网络营销软件网络推广软件网站推广软件下载引擎登陆软件论坛群发软件下载免费版
论坛群发软件,信息群发软件,群发软件,网络营销软件,网站推广软件引擎登陆软件下载
网站排名软件网站推广软件信息群发软件博客群发软件论坛群发软件免费下载
群发软件,信息群发软件,博客群发软件,论坛群发软件,免费下载:群发软件系统
推广小助手破解版
论坛群发软件
网站排名软件
群发软件
推荐给你很好的群发软件和信息群发软件和供求群发软件
推荐给你很好的群发软件和信息群发软件和供求群发软件博客群发软件网络营销软件网络营销软件
网站排名软件网站排名软件网站优化软件信息群发软件信息群发软件信息群发软件论坛群发软件网站推广软件网站推广软件博客群发软件博客群发软件
群发软件群发软件博客群发软件论坛群发软件网络营销软件论坛群发软件
信息群发软件推广软件网站推广软件网络营销软件网站推广软件群发软件网站排名软件网站推广软件博客群发软件论坛群发软件群发软件网站排名软件网站推广软件博客群发软件论坛群发软件
网站排名软件
博客群发软件
网站排名软件
网站推广软件
群发软件信息群发软件
免费论坛群发软件
论坛群发软件
网站排名软件
免费博客群发软件
网站推广软件
群发软件
博客群发软件
网站排名软件
网站推广软件
群发软件信息群发软件
免费论坛群发软件
论坛群发软件
网站排名软件
免费博客群发软件
博客群发软件
Posted by: 3ufblog9 on November 28, 2007 at 09:00 PM
-
wow power leveling
wow powerleveling
wow power leveling
wow gold
wow items
feelingame.com
wow tips
Most Valuable WOW Power Leveling Service
wow power leveling faq
cheap wow power leveling
wow power leveling
wow powerleveling
wow power lvl
Posted by: wowpower on December 11, 2007 at 11:21 PM
|