G
Guest
Most of you have probably heard/read that it's better to use JSP tags
instead of scriptlets for the reason that you should not "mix
presentation and logic" (for example that's what the JSP chapter of
the Java Web Services Tutorial claims) but can someone explain why
"the logic" is considered to be less mixed just because you change the
logic from normal java syntax to xml syntax?
For example have a look at this page with scriptlets:
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPIntro2.html
And this similar page written with JSP standard tags:
http://java.sun.com/webservices/docs/1.3/tutorial/examples/web/date/web/index.txt
Does anyone really think that the XML syntax (jsp tags) is easier to
read or that you are using less logic just because the syntax for the
logic is XML instead of java ?
instead of scriptlets for the reason that you should not "mix
presentation and logic" (for example that's what the JSP chapter of
the Java Web Services Tutorial claims) but can someone explain why
"the logic" is considered to be less mixed just because you change the
logic from normal java syntax to xml syntax?
For example have a look at this page with scriptlets:
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPIntro2.html
And this similar page written with JSP standard tags:
http://java.sun.com/webservices/docs/1.3/tutorial/examples/web/date/web/index.txt
Does anyone really think that the XML syntax (jsp tags) is easier to
read or that you are using less logic just because the syntax for the
logic is XML instead of java ?