Hi,
looking at Numguess.jsp, you will see:
<jsp:setProperty name="numguess" property="*"/>
This line will try to map all the request parameter (here "guess"), with the
corresponding property of the bean (here "numguess").
So when you press "Submit" the page "numguess.jsp?guess=XX" is requested,
and the JSP engine calls the bean method:
numguess.setGuess(XX);
then processes the page, and finally sends it to you.
Hope I am clear, and helps,
Olivier DAVID
Jianhong <[EMAIL PROTECTED]> on 08/20/99 04:03:41 AM
Please respond to Jianhong <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:
Subject: How to pass the parameter.
Hi, gurus,
I'm a beginner for JSP and just joined this mail list.
I'm studying the example numGauss, I want to know how the parameter "guess"
is passed to the class file "NumberGuessBean.class".
Any reply would be appreciated.
Thanks in advance.
Jianhong
---------------------------------------------------------------
Get free personalized email from USA.com at http://mail.usa.com
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html