I felt that the whole purpose of JSP is to separate business logic from
presentation. The presentation should have minimum programming stuff in it
(since html designers are not strong programmers and may not know java). Let the
business logic is done in servlet and let it generate the results which will be
combined with html pages using templates and generate the final output. This is
the whole purpose of the separation. Using these tags make embedding of java
code in the pages. Think of it similar to XML/XSL analogy. The servlet generates
XML output and provides a xsl stylesheet and the XML page to the XSL Engine
which merges both and generates the final page. The XSL doesnt include code
etc.,.
I am not completely against <% %> tags since they provide enormous amount of
flexibility in the dynamic page that is generated but also makes the html jsp
page a little murky.
Regards
Vijay
"Kirkdorffer, Daniel" wrote:
> Why should the usage of <% %> and <%= %> be discouraged?
>
> Dan
>
> > ----------
> > From: Vijay Eranti[SMTP:[EMAIL PROTECTED]]
> > Reply To: Vijay Eranti
> > Sent: Wednesday, March 31, 1999 3:39 PM
> > To: [EMAIL PROTECTED]
> > Subject: use of display tag
> >
> > Hi guys,
> >
> > I was wondering is there a way to change the display tag syntax.
> >
> > Normally, html designers use DISPLAY tag most frequently if they are
> > following the standard practice of minimizing the usage of java snippets
> > in the JSP pages which I think they wont be knowing . The syntax for
> > display tag is
> >
> > <DISPLAY property=bean:propertyname>
> >
> > This seems too long thing. It would be nice if a shortcut for this is
> > provided as provided by most template languages like
> > <# bean:propertyName>
> >
> > I was surprised to see that such a shortcut is provided for java
> > expressions <% %> and <%= %> whose usage should be discouraged
> > normally. In 95% of cases, the designer will be using display tag and it
> > is real painful to include whole of the two keywords <DISPLAY property=>
> > and then the property name.
> >
> > Regards
> > Vijay
> >
> > ==========================================================================
> > =
> > 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".
> >
===========================================================================
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".