|
Leon,
The
asterisk in the second line of code is a wildcard character and tells JSP to
take all of the parameters sent to the page and set the properties in the bean
with these parameters. It is simpler and quicker than having to set all of the
properties individually.
For
example the JSP page may be called as shown
myJSPfile.jsp?paramOne=someValue¶mTwo=someOtherValue
Using
the * character would cause the following parameters to be set in the
bean
public void setparamOne(String strVal)
{
paramOne= strVal; } public void setparamTwo(String strVal)
{ paramTwo= strVal; }
|
- can someone explain this trivial thing...? Leon Andrews
- Re: can someone explain this trivial thing...? Young Dave
- Eugene O'Brien
