You make assumptions.  I could be using the Java logic to iterate through my
bean data to populate a table.  Or I could be deciding based on a value to
color the text red.  Or I could be verify my bean has data to determine
whether to display something or not.  And so on...  These are all
presentation issues.

Using lots of <%'s could also mean I'm not marrying my app to a lot of tags
that haven't been finalize yet.

Dan

> ----------
> From:         Christopher Cobb[SMTP:[EMAIL PROTECTED]]
> Reply To:     [EMAIL PROTECTED]
> Sent:         Thursday, April 01, 1999 4:58 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: use of display tag
>
> <<File: ccobb.vcf>>
> The idea is to separate application logic from presentation, partly for
> reasons of skill-set separation, and partly for reason of better
> modularization/encapsulation and looser coupling (in other words, better
> architecture).  Using lots of  <%'s mean you're mixing application logic
> with presentation issues, which for most people is a bad idea.
>
> cc
>
> "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".
>

===========================================================================
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".

Reply via email to