Jayson Falkner<br />[email protected]<br />Author of <a href="http://www.jspbook.com" target="_blank" rel="nofollow">Servlets and JavaServer Pages; the J2EE Web Tier</a>
Kevin Jones<br />Author: <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0321136497/jranch-20" target="_blank" rel="nofollow">Servlets and JSP: The J2EE Web Tier</a>
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
It is impossible to make anything foolproof because fools are so ingenious..Murphy<br />Basu.
Originally posted by Frank Carver:
I'm sure that Resin 1 and 2 support Javascript scriptlets in JSP.
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
42
Originally posted by Pradeep Bhat:
Does the book cover JSF?
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
I'm intrigued by this. Can you expolain a little more what benefits you would see in layering yet another (probably not-quite-compatible-with-anything-else) language for use in JSP?
As far as I recall, the original JSP spec allowed for alternative scriptlet languages, but the community as a whole ovewhelmingly adopted Java
as the scriptlet language, as opposed to (for example) the simpler JavaScript.
There are obvious benefits to using Java for such scripting: availability developer skills, familiarity, and the ability to easily move scriptlet code straight in to tags, beans or regular Java classes during maintenance or refactoring, etc, etc..
Sure the page markup language in (for example) Velocity/WebMacro may be "simple", but it's different, next to nobody is skilled in it, you can't get hundreds of books and courses like you can in Java.
So. Given that we already have an extremely powerful, flexible, and well-known scripting language built right in to every current JSP container, what might you see as the incentive to invent another one?
Kevin Jones<br />Author: <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0321136497/jranch-20" target="_blank" rel="nofollow">Servlets and JSP: The J2EE Web Tier</a>
Interesting thoughts..I would just like to argue a bit if I may. I can't agree that we need a "...real page level language..." and I would argue that the control you speak of
* Maybe should be abstracted out into the model
* IMO is already available with JSTL
unless I am misunderstanding what you mean by "control". The reason I like JSP over other "view" technologies is because it holds true to the XML markup language that every web developer (HTML or Java) should already be aware of if not know very well. Most people are already used to browsing through code and seeing ${...} as the EL now provides (ANT comes to mind). But I just find it silly, yes i said silly, to see things like #variable in an HTML page like velocity uses.
Too much "code" in an HTML page and you might as well use PHP or something of that nature.
As far as fragmenting the community, there are already so many options available in the Java community in general and our community is already fragmented to an extent. Have you seen the WW and Struts wars going on? It's crazy. And those are just frameworks. If there is anything nice about .NET it's the fact that you don't have so many options. You know what you have to use going in. And you can concentrate on getting the project done. With Java and more specifically J2EE you start the project with
* Struts, WW, Tapestry, straight servlets??
* Hibernate, JDO, JDBC, Castor??
* Ant or Maven??
* Eclipse, IntelliJ, JDeveloper, Notepad?
* Xerces, JDom??
And the list goes on. My point is our community is fragmented into "option" factions. Struts clans, Maven clans, Notpad clans. And someone wants to rework servlets from the ground up? Why not just make another spec all together and give us 1 more option?
Just my opinion anyway.
Kevin Jones<br />Author: <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0321136497/jranch-20" target="_blank" rel="nofollow">Servlets and JSP: The J2EE Web Tier</a>
To make life easier! We're not talking about a full blown language here, we're talking about extending the EL to have something like a forEach construct to iterate over collections. That has to be easier than writing Java code.
Each language has it's place. Java is great for the business and control logic, but it does not work well as a scripting language!
42