When the request comes from the form, the bean's properties are set to the
form values specified by the user. Now, if the property names are same as
the names of the parameters passed in through the form, then we can also
use the special wild card character '*' to set the value of any Bean
property whose name carresponds to the name of the request parameter.

Its important that the names should match exactly since there is no other
way to to map the request parameters with the property names of the bean..

for ex. if u have form parameters like
<input text name="Demo">
<input text name="Test">

and u have the bean property like

public void setDemo(String s){}
and
public void setTest(String s){}

then the JSP:setProperty tag used with the * as value to the attribute
property in the tag, initialises all the set Bean properties...

hope this answers very well for your question..

KV


----- Original Message -----
From: B R Nair <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 25, 2000 8:28 AM
Subject: property = "*"


> Hello,
>
> Would you please tell me what does * do in the following?
> <jsp:setProperty name = "mybean" property="*" />
>
> Thanks and regards
> BRN.
>
>
===========================================================================
> 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
>

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