this will make a dropdown box containing all my option values..
now i have to enter the date value whose option value has to be updated??
what code should i write in servlet so that it recognises that a particular option value has been passed??
Get the option's request parameter and do something with it.
But as Bear said--if you insist on not indenting your code you'll find fewer and fewer people willing to help you. Please ShowSomeEffort, and take some time to make your posts as understandable as possible.
request.getParameter("parameter");
but how do i retain the actual option value???
and how do i pass the selected value from jsp to servlets....how will it determine from the drop down box which value is selected?thanks in advance....
request.getParameter("parameter");
but how do i retain the actual option value???
Assign it to a variable:
Or am I not understanding your question?
maggie joseph
Ranch Hand
Joined: Dec 29, 2009
Posts: 185
posted
0
see i am doing this in my servlet...i am using request.get parameter("parameter");
but when i am selecting a particular option in jsp how do i write a code for that???and how do i send that in servlet??
maggie joseph wrote: when i am selecting a particular option in jsp how do i write a code for that???and how do i send that in servlet??
you already post *the code*. by submitting you can send the selected value to a servlet. I am afraid, whether you aware about server and web deployment process ?
maggie joseph
Ranch Hand
Joined: Dec 29, 2009
Posts: 185
posted
0
no i am not aware of what you mentioned?
where can i get help about those topics??
this is my jsp code which is sending date ,option value and value to be updated..
in servlet i write....
is this the right way of getting the selected option value and the entered value to be updated?
thanks.......
thanks for the link..but I am running short of time...
maggie joseph
Ranch Hand
Joined: Dec 29, 2009
Posts: 185
posted
0
hey i am getting the parameter values and value passed in servlet....
but how do i write a logic to update the database values..
in my servlet i have written..
but i a not getting anything in the output....
maggie joseph
Ranch Hand
Joined: Dec 29, 2009
Posts: 185
posted
0
i made changes in the code..i used .equals instead of == operator.....actually i have the book...i have not read much from it...well thanks for the link..now it seems that i need to really start reading...