Hi Piyu, et al:

Note that the current version of the JSP 1.1 spec says that getProperty
says: "...The Bean instance must be defined as indicated in the name
attributre before this point in the page (usually via a useBean
action)".

This text is not very precise, so we will clarify it in an errata.  The
errata is being prepared in the vendor+expert community and will go out
for public presentation within the next week or two.

In the particular case above, the current proposal is that "name" must
refer to objects whose name has been introduced to the JSP page using
either a jsp:useBean, or a custom action that describes that name
through a VariableInfo.

In particular, if the errata is clarified as in the previous paragraph,
your example is not valid, since "me" is not a name introduced via
jsp:useBean or through a VariableInfo.

I will notify jsp-interest (& webjava-announcement) when the errata is
available for public review.

        - eduard/o


> Date:    Tue, 25 Apr 2000 08:50:43 +0530
> From:    piyush raj jain <[EMAIL PROTECTED]>
> Subject: Re: jsp:getProperty+correction to pre
>
> oh !!! sorry naik i didn't read your entry properly
> you may use
>
> <%!String meStr; %>
> <% meStr=me.getName(); %>
>
>
> as
> <%=me.getName()>
> and
> <jsp:getProperty name="me" property="name" />
> will be translated by jspengine in servlet as
> out.println(me.getName());
> regds
> piyu

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