try using getter/setter methods for the same

for example .. if the submission form submits variables "age" to say
"acceptdetails.jsp" and u want to send the details to a "detailBean" which
will perform the nessecary stuff on the data (say - write to a DB)

        public detailBean {
                private int m_age;

                public void setAge( int age ) {
                        m_age = age;
                }

                public int getAge() {
                        return m_age;
                }

                //etc-etc
        }

        and use the bean as

        <!-- acceptdetails.jsp -->
        <jsp:useBean class="detailBean.class" name="mybean" />

        thats ALL !! the setter methods are called automatically.
        However plz. note the "A" of setAge for the property
        "age" with a "a".

Mayuresh

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of jyothirmai porika
Sent: Friday, May 18, 2001 03:51
To: [EMAIL PROTECTED]
Subject: How To Send The Selected(options) value to a BEAN as a
Parameter


Hi,

Please, i need some help.

I want to send the value of the selected option
in a jsp form as a parameter to a bean.
so, how do i store the selected value in a variable and use it.

Please help me.

Thank's
-Jyothi


-----------------------------------------------
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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