What I actually meant was a clash between bean *property* names and request
parameter names (eg form fields).

If you use the following:

   <jsp:setProperty name="mybean" property="*"/>

it automatically iterates through the parameters in the request and sets the
corresponding bean parameters (of the same name).
My point was that someone could inadvertently add a form field whose name
might match one of the bean's (possibly unrelated) properties and that
property would get set by the above tag without it necessarily being obvious
what has happened.

Steve

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Karl Roberts
> Sent: 07 December 1999 11:37
> To: Stephen Summerfield
> Subject: Re: What's the use of [<jsp:useBean> tag]?
>
>
> Hi,
>     I think that an unintentional clash of names is unlikely
> for the simple reason
> the to use a bean at all you are forced to use the full
> pakage name for the bean ,
> both in the <%@ page import="{package.class}" %> and the
> <jsp:useBean...> tag.
>
> Karl

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to