Urgent About SELECT and sending Value to a BEAN

2001-05-18 Thread jyothirmai porika

Hi,

Please Help me 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 i can not
submit the form.

And the probles in submiting the value is:
--
I am populating the option's in the select by calling a bean.
so, if i submit and refresh the value. The select will also change and point
to the default selected one.
so, the select will have the default selected value.
and the data which i get by onChange will be of the previously selected
option.
And i can use only jsp1.1.

If anyone can help me that would be great.

Thankx,
-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



Re: Urgent About SELECT and sending Value to a BEAN

2001-05-22 Thread Ananda Venkatapathy

 Hi,

 Could u explained the problem briefly?. Whether you want to pass
the value to bean within a selected page or another page.

regards
pathy



> Hi,
>
> Please Help me 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 i can not
> submit the form.
>
> And the probles in submiting the value is:
> --
> I am populating the option's in the select by calling a bean.
> so, if i submit and refresh the value. The select will also change and
> point
> to the default selected one.
> so, the select will have the default selected value.
> and the data which i get by onChange will be of the previously selected
> option.
> And i can use only jsp1.1.
>
> If anyone can help me that would be great.
>
> Thankx,
> -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
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.255 / Virus Database: 128 - Release Date: 5/17/2001
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.255 / Virus Database: 128 - Release Date: 5/17/2001

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



Re: Urgent About SELECT and sending Value to a BEAN

2001-06-02 Thread Mayuresh Kadu

ok .. i dont know if i got the question right .. but here goes ..

[[ Maximize ur Message Window to see this properly ]]

#1 u want to send the value selected in a JSP form to a BEan
[Soln #1]
Assuming this is the form i have :


Name
Address






then the bean would be

public class FormBean {
private String m_name;
private String m_address;

public void setName( String name ) {
m_name = name;
}
public String getName() {
return m_name;
}

public void setAddress( String address ) {
m_address = address;
}
public String getAddress() {
return m_address;
}
}

and to use the bean u can use the regular



THATS ALL !!

U see the setter methods get called automatically.
In short .. if u have a form element called "test" ..
all u have to do is have a getter and setter method
in the bean called getTest() and setTest(  String val )
and they get called automatically !! Simple na ?!


#2 Default values being reset in a FORM
[ Soln #2 ]

Its quite simple really
if i have a 
i should put the following with my submit button


If the user changes "User Name" string to "ABC Industries" and presses
the RESET button .. the default value of "User Name" (that specified
in the value attrib of the input element) will be reinstated !!

I hope this helps !


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 22:38
To: [EMAIL PROTECTED]
Subject: Urgent About SELECT and sending Value to a BEAN


Hi,

Please Help me 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 i can not
submit the form.

And the probles in submiting the value is:
--
I am populating the option's in the select by calling a bean.
so, if i submit and refresh the value. The select will also change and point
to the default selected one.
so, the select will have the default selected value.
and the data which i get by onChange will be of the previously selected
option.
And i can use only jsp1.1.

If anyone can help me that would be great.

Thankx,
-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