Passing values to JavaBean function using jsp scriplet
Hi,
I have a JavaBean funtion that is SaveData(parameters)
which save the values from HTML form.
Now i want a code for pass the values from HTML form to SaveData() function using jsp scriptlet.
I used the code
<jsp:useBean id="JDBC" class="bean.JDBCBean" scope="application"></jsp:useBean>
<%=JDBC.saveData(phonenumber,manufacturer,model,email,country,newsletter)%>
Here
JDBCBean -> Bean Name
phonenumber,manufacturer,model,email,country,newsletter ->HTML form's text values
But it didnt work properly.
Anyone help me to correct this.
[634 byte] By [
shreea] at [2007-10-2 3:29:40]

a) first read the answers people give on your original poqt
http://forum.java.sun.com/thread.jspa?threadID=676554&tstart=0
b) Use what people say in the answers or ask for more clarification
c) Use the code tags (see formatting tips)
d) Post enough code so people can determine what is wrong.
e) dont say "it didnt work" , state what is not working , what exceptions you are getting , if occuring add the stacktrace.
f) Communicating bewteen HTML and a JSP scriplet always goes through some form of request
Hi,
i have the same code like above
I have to pass the parameters with form name under the following code.
<jsp:useBean id="JDBC" class="bean.JDBCBean" scope="application"></jsp:useBean>
<%=JDBC.saveData(registration.phonenumber.value,id_type.value,id_style.value,registration.email.value,registration.scountry.value,player_type.values)%>
Here
registration -> HTML form name
But i got the error for
package registration does not exist
out.print(JDBC.saveData(registration.phonenumber.value,id_type.value,id_style.value,registration.email.value,registration.scountry.value,player_type.values));
How to i correct this?
Anyone help me......
shreea at 2007-7-15 22:39:24 >

Hello to you too !
You will need to learn to help yourself first in stead of just repeting same questions.
Do you bother to read what i posted before ?
Especially the bit where i say that HTML is CLIENT side and JSP is SERVER side and the bit where i provided the correct code to retrieve a value ?
Now do some effort or at least try to make me believe you are trying to find the solution.