Home Answers Viewqa JSP-Servlet ftech different value corresponding different value

 
 


megha singhal
ftech different value corresponding different value
2 Answer(s)      a year and a month ago
Posted in : JSP-Servlet

in my dropdown two options are their and i want when i select any option the corresponding value that go in the database should be different. for eg. in my drop down there are two optiond like delhi and mumbai so if a person select delhi then entry in database should be 'D' and if any one select mumbai then the entry in the database should be 'M'.

View Answers

April 24, 2012 at 5:02 PM


Do you want autosuggest or autocomplete box?


April 28, 2012 at 10:59 AM


Use the following code:

<%
String selectedvalue=request.getParameter("select");
char ch=selectedvalue.charAt(0);
String st=Character.toString(ch);
%>

The value st is then inserted into database. It stores the first character of any selected value.









Related Pages:
ftech different value corresponding different value
ftech different value corresponding different value  in my dropdown two options are their and i want when i select any option the corresponding value that go in the database should be different. for eg. in my drop down
updating rows which contains same id, different value for each row
updating rows which contains same id, different value for each row  ... sid 1) with 'lilitha' as a value for name column second row(having sid 1) with 80 as a value for age column third row (having sid 1) with 'suri' as a value
JDOM Attribute Example, How to convert value of attribute in different data type
JDOM Attribute Example, How to convert value of attribute in different data type In this tutorial, we will see how to retrieve the value of an attribute in different data type like int, float, boolean etc with the help of JDOM
What are different normalization forms?
What are different normalization forms?  What are different normalization forms?   Hi, 1NF: Eliminate Repeating Groups- Make a separate... field contains at most one value from its attribute domain. 2NF: Eliminate
with a different number, what’s the problem
with a different number, what?s the problem  I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what?s the problem
with a different number, what’s the problem
with a different number, what?s the problem  I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what?s the problem
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what?s the problem?  I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what?s
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what?s the problem?  I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what?s
How to make a button of different behaviour?
How to make a button of different behaviour?  Suppose In a jsp page I have a button SAVE with id="btnSave" value="SAVE" and a javascript function...").value,......); Now I want the SAVE button to be changed to UPDATE button id
Set Different Color to different row in Java Program
Java Set Different Color to different row In this section, you will learn how to set different color to table row using java swing.For this purpose, we have.... This class provides the method setBackground() which allow us to set different
assign value problums in php
assign value problums in php  I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what?s the problem
request object value
. In this application we have a login page. Thr are different text field. when we... request object value for whole application. Problem is..envirement session... request value for whole application without using session,application object. Please
javascript duplicate value
javascript duplicate value  In javascript how to find the duplicate or variable that contains same value for example ...two different variables contains the same URL Link.    //To loop through use this $("a:contains
* How to communicate with different web applications ? ? ? ? - JSP-Servlet
* How to communicate with different web applications ? ? ? ?  Deepak... with different web applications which are under same or different servers? ex.../jsp/show.jsp => so i meant to say that first and second are different
*** How to communicate with different web applications ? ? ? ? - JSP-Servlet
*** How to communicate with different web applications ? ? ? ?  ... to communicate with different web applications which are under same or different servers? ex... to say that first and second are different contexts. if i am trying
How to communicate with different web applications ? ? ? ? - JSP-Servlet
How to communicate with different web applications ? ? ? ?  Deepak ji... with different web applications which are under same or different servers? ex... that first and second are different contexts. if i am trying
How to communicate with different web applications ? ? ? ? - JSP-Servlet
How to communicate with different web applications ? ? ? ?  How to communicate with different web applications which are under same or different... value send this to another JSP page by response.encodeURL("show.jsp
Array Add Key Value PHP
PHP array add key and value In PHP, key and value plays important role... type where value could be of any type, it may be a string, numeric value, or boolean value. Syntax of PHP array is "index=>value", this indices
Login With Drop Down, Having Departments in different table
Login With Drop Down, Having Departments in different table  Hi all... Customs and Accounts in the database with different tables. I have designed.... In my project I have different departments say, Customs in one table and Accounts
different output trying to execute same java code
different output trying to execute same java code  i am using net... to read value from serial port : import java.io.*; import java.util.*; import... there is different output trying to execute same java code
Show Different Strokes
Show Different Strokes       In this section, you will see different types of strokes. To give the the impressive and stylistic outline, class BasicStroke is used. The value
different output trying to execute same java code
different output trying to execute same java code  i am using net... to read value from serial port : import java.io.*; import java.util.*; import... " portList : false" Why there is different output trying to execute same java
different output trying to execute same java code
different output trying to execute same java code  i am using net... to read value from serial port : import java.io.*; import java.util.*; import... " portList : false" Why there is different output trying to execute same java
keeps coming up with a different number, what’s the problem.
keeps coming up with a different number, what?s the problem.  I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what?s the problem
keeps coming up with a different number, what’s the problem
keeps coming up with a different number, what?s the problem  I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what?s the problem
PHP Value Sorting
PHP Sort By Value: PHP provides many functions to sort an array. We can sort an array by value, key or randomly. But in most of the situations we need to sort an array by value. There are so many functions are available in PHP, some
Conversion from string data type into different data types.
Conversion from string data type into different data types.  string str="World id Beutifull"; char chr[20]; char* chrctr ; Qustion is -How to store the 'str' value in 'chr' and 'chrctr'? int abc; sprintf(abc ,"%s",str
PHP related - how to explot a string with commas and store into two different variables?
PHP related - how to explot a string with commas and store into two different variables?  Hi, I have a string and is like this '[tubelist 123456,54321,56789,98765]'. I would like to extract the first value after the tubelist
Different JRE
Different JRE  Java is platform independent. The why different JRE's there for differen operating systems
Java get decimal value
print this decimal value in other different formats by defining the decimal... Java get decimal value       We can also get the decimal value in the specified format as we
JSP data after login where different users data are stored in database
JSP data after login where different users data are stored in database  hey..i have a login page where different users first registered... where different users data are stored in database,plz...provide me answer its
Java Pass Value Example
in to the different applications.   Pass value from iframe... Java Pass Value Example       Pass value from JSP to JavaScript We
retrieving of value from excel file - JSP-Servlet
onl single column value i.e EmailId values to send for a different employees...retrieving of value from excel file  Dear sir, Thanks for sending a code now i am getting a particular column value i.e EmailId column
Get the smallest double greater than the given value
Get the smallest double greater than the given value This section demonstrates you how to get the smallest double value greater than the given value. Java has provide several classes for formatting different objects like, number, date
Show different types of Cursor
Show different types of Cursor       This section illustrates you how to change the appearance.... The method setPixel(i, j, 1) sets the pixel value and on clicking the button
retrieving of value from excel file - JSP-Servlet
retrieving of value from excel file  Dear sir, Thanks for sending a code now i am getting a particular column values i.e EmailId column for sending... in the previous code i have got a different contents in a single sending option
retrieving of value from excel file - JSP-Servlet
retrieving of value from excel file  Dear sir, Thanks for sending a code now i am getting a particular column values i.e EmailId column for sending... in the previous code i have got a different contents in a single sending option
Display session value Using Servlet
Display session value Using Servlet     ... it is necessary to interact with the different values of the Session object. In this example we will explore the different values of the Session object and then learn how
How to get more than one value from ajax
How to get more than one value from ajax  I have multiple select list box in php. i filled the value using ajax. how to get different value to fill the same list box Ex. option value as id option name as some string
DIFFERENT PAGES FOR DIFFERENT USERS ACCORDING TO THEIR ROLE
DIFFERENT PAGES FOR DIFFERENT USERS ACCORDING TO THEIR ROLE  I HAVE A PROBLEM IN PHP CODING PLS HELP ME PROBLEM IS THAT I WANT DIFFERENT PAGES TO VIEW FOR DIFFERENT USERS WHEN THEY LOGIN ACCORDING TO THEIR ROLE IN DATABASE
when radio button is selected corresponding jsp page should open
when radio button is selected corresponding jsp page should open  how... the corresponding jsp page should open..!   <html> <script> function...; i++) if (selection[i].checked == true) if(selection[i].value=="view
different kinds of actions in Struts
different kinds of actions in Struts  What are the different kinds of actions in Struts
different JDBC drivers available
different JDBC drivers available  What are the different JDBC drivers available
If Sessin Contain Array how can i get each value.
to use this value in different conditions..so how can i get it.. Thank u...If Sessin Contain Array how can i get each value.  sir, i m trying to get value form session and session contain array i mean .. whatever
Updating rows who has same id with different values for each row from java program
Updating rows who has same id with different values for each row from java... value and 5 records with sid 1 value.we have to change only those records.) I have... (having sid 1) with "naveen" as value for sname column.And second row(having sid 1
links with different colors.
links with different colors.  How can I have two sets of links with different colors
Different between getRequestParameterMap() and getRequestParameterValuesMap()
Different between getRequestParameterMap() and getRequestParameterValuesMap()  What is the different between getRequestParameterMap() and getRequestParameterValuesMap
java program of different shapes
java program of different shapes  pls help me to get the code of a java program of different shapes using menu
What are the different types of AutoProxying?
What are the different types of AutoProxying?  Hi, What are the different types of AutoProxying? Thanks
Different types of event in Java AWT
Different types of event in Java AWT       Introduction There are many types of events... class extends from the AWTEvent class. When the Adjustable Value is changed

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.