I disagree with both camps to some extent.
1. Introducing new tags is not the right way to go
about it. There should be very few tags (Loops,
conditionals and properties are about all you need in
HTML). Look at how Apple WebObjects is structured:
There is but one special HTML tag: <WEBOBJECT>. That's
it. It ends up being quite powerful, because you can
bind that tag to any method or property in a component,
and treat it as a loop or a conditional or a property.
I see JSP taking a similar strategy, while improving on
the readability of the tags.
2. It should not be necessary to put java code in an
html template, ever. Period. I've written very complex
and sophisticated applications in ASP, and I have been
pleased with the results. But I ended up with some
ugly, unmaintainable code. If I had to do it again I
would dispense with VBScript as much as possible and
write COM components. The value of Java and object
orientation is that different functionality can be
divided and encapsulated in a logical, well-organized
way. It may seem convenient and rapid to put java code
in the template. But for serious projects, I think that
approach is an example of short-sightedness and lazy
thinking.
So, with respect to the validation/page-selection
issue: I wish there were a way to do this without
a)putting java in the page OR b)writing a servlet. I
would consider that an important requirement of JSP.
-Harris Wulfson
[EMAIL PROTECTED]
--- "Kirkdorffer, Daniel"
<[EMAIL PROTECTED]> wrote:
> Why is everyone wishing for us to create new
> specialized tags? What is
> wrong with writing Java code in <% %> tags? These
> are *Java*Server Pages
> after all. Come on people, you have all the
> flexibility in the world with
> the <% %> tags.
>
> Dan
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".