Jim Preston wrote:

> There really isn't a difference. According to the book "JavaServer Pages" by
> Larne Pekowsky (p. 49):
>
>         The [getProperty format] is recommended because it makes it clear that the
>         object is a bean. In addition, down the road the bean specification may be
>         expanded so that a bean can comprise multiple classes, at which point this
>         translation will not work any more.
>

Two other reasons to consider using <jsp:getProperty>:

- <jsp:getProperty/> is already syntax compliant with XML.  Some apps generate
  and/or parse JSP pages as XML and this becomes important.

- Although nearly every implementation of JSP so far has used Java as the only
  scripting language, this is not required.  The <jsp:getProperty> tag is independent
  of the language you are using for scripting, but scriptlets are not.

>
> --Jim Preston
>

Craig McClanahan

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to