jsp help

jsp help

In below code value got in text box using 'ID' Attribute ... I want to use that value in query to fetch related values in same page.... without refreshing page....

1)selectbox.jsp:

<html>
<head>
<script language="javascript" type="text/javascript">
var xmlHttp
function showState(str){
if (typeof XMLHttpRequest != "undefined"){
xmlHttp= new XMLHttpRequest();
}
else if (window.ActiveXObject){
xmlHttp= new ActiveXObject("Microsoft.XMLHTTP");
}
if (xmlHttp==null){
alert ("Browser does not support XMLHTTP Request")
return
}
var url= "select.jsp";
url += "?val=" +str;
xmlHttp.onreadystatechange = stateChange;
xmlHttp.open("GET", url, true);
xmlHttp.send(null);
}
function stateChange(){
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
document.getElementById("txt").value=xmlHttp.responseText;
}
}
</script>
</head>
<body>
<select onchange="showState(this.value)">
<option value="Alto">Alto</option>
<option value="Esteem">Esteem</option>
<option value="Honda City">Honda City</option>
<option value="Chevrolet">Chevrolet</option>
</select>
<br>
<input type="text" id="txt">
</body>
</html>

2)select.jsp:

<% String data=request.getParameter("val");
response.getWriter().println(data);
%>
View Answers

August 18, 2010 at 12:25 PM

Hi Friend,

Please visit the following link:

http://www.roseindia.net/jsp/comboSelect.shtml

Thanks









Related Tutorials/Questions & Answers:
JSP help
JSP help  Hi i am using jsp,html and mysql. I am displaying one question & their 4 options per page. For that i have one label for question &... do this? Please Help
jsp help
jsp help  Hi i am doing my project in jsp.using netbeans 6 and mysql 5.0. and i managed to complete it. and now its submission time. but am confused... with it. so that my project can run independently in any server. plz help me. am so
Advertisements
jsp help - JSP-Servlet
jsp help  hai friends i am using videos,which will play on my webpage using flowplayer.my doubt is where will i store my videos whether in the database or in another local folder. please help me as soon as possible thanks
jsp help - JSP-Servlet
jsp help  In below code value got in text box using 'ID' Attribute ... I want to use that value in query to fetch related values in same page...://www.roseindia.net/jsp/comboSelect.shtml Thanks
jsp help - JSP-Servlet
jsp help  i want to add n remove rows dynamically and also want to add data in database in jsp ....  Hi Friend, Try the following code: 1)table.jsp: Add/Remove dynamic rows in HTML table function
jsp help - JSP-Servlet
jsp help  i got below code for dynamically add n delete row... but in my table there are 17 colum in 1 row..i want to add whole row with 17 cloum.. so which changes are required??? 1)table.jsp: Add/Remove dynamic
help me - JSP-Servlet
help me   how to open one compiled html file by clicking one button from jsp
Help on JSP - JDBC
Help on JSP  Sir I am makeing a project name Online reservation and Enquiry system. I had completed the front end design with the help of html,delete and search the database from the html file with the help of JSP.  hi
Need help on JAVA JSP
Need help on JAVA JSP  Hi, I have never worked on java and I have been given an assignment where I have to fix existing issues in the tool(created using JAVA JSP). e.g. Tool does not adjust with the resolution of the screen
please help in jsp - JSP-Servlet
please help in jsp  i have two Jsp's pages. on main.jsp have some... data. here some data of Jsp's. main.jsp..._TO_REPLACE_1 addmission please help.  Hi Friend
help on project - JSP-Servlet
help on project  Need help on Java Project
Help on JSP and JDBC - JDBC
Help on JSP and JDBC  Retrieve data from Database in JSP and JDBC...;hi friend, jsp only for view , we should use for presentation don t combine databse code and jsp, it is not good approach,use separate class
please help - JSP-Servlet
with others combox values. Here is JSP's files: display.jsp... To Year "> please help
Help needed in JSP
Help needed in JSP  Hi .. I want to Update the multiple values of database using checkboxes and want to set the session for selected checkboxes..? please answer if any one knows as soon as possible
help me to do it in jsp
help me to do it in jsp  if we click on a topic it should direct to another page in separate window i need to create a part of the web page which... to insert and update the topics via admin page. pls help me to do
Java and JSP help
Java and JSP help  I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved...;title>JSP Form</title> <style> </style>
Java and JSP help
Java and JSP help  I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved...;title>JSP Form</title> <style> </style>
Java and JSP help
Java and JSP help  I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved...;title>JSP Form</title> <style> </style>
Java and JSP help
Java and JSP help  I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved...;title>JSP Form</title> <style> </style>
Java and JSP help
Java and JSP help  I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved...;title>JSP Form</title> <style> </style>
Java and JSP help
Java and JSP help  I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved...;title>JSP Form</title> <style> </style>
Java and JSP help
Java and JSP help  I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved...;title>JSP Form</title> <style> </style>
Java and JSP help
Java and JSP help  I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved...;title>JSP Form</title> <style> </style>
Java and JSP help
Java and JSP help  I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved...;title>JSP Form</title> <style> </style>
Java and JSP help
Java and JSP help  I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved...;title>JSP Form</title> <style> </style>
Java and JSP help
Java and JSP help  I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved...;title>JSP Form</title> <style> </style>
Java and JSP help
Java and JSP help  I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved...;title>JSP Form</title> <style> </style>
Java and JSP help
Java and JSP help  I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved...;title>JSP Form</title> <style> </style>
Please Help - JSP-Servlet
Please Help  Respected Sir/Madam, I am R.Ragavendran.. Thanks for your response.. You told me that its difficult to handle the problem.. Ok,Let me try my hands on it.. The help i need is can u please tell me
Help with javascript function - JSP-Servlet
Help with javascript function  I've got a button in a for loop.Each... properties of those clicked buttons to be transferred to the next jsp page... this task? ***Your help would very much appreciated
Programming Help URGENT - JSP-Servlet
Programming Help URGENT  Respected Sir/Madam, I am... TO ROSEINDIA TEAM< IF I GET THIS HELP IN TIME.... Thanks/Regards...://www.roseindia.net/jsp/implement-javascript-with-jsp.shtml Thanks
plz help me!!!!!!!! - JSP-Servlet
plz help me!!!!!!!!  i`ve set the environment varaibles for tomcat as well as jdk.. but i`m not understanding where i`ve to save my servlet..i.e.... there are compilation errors.. plz do help me.   make sure that you did
Project realated help - JSP-Servlet
Project realated help   Hi sir i need your assistance em stuck at a point,actualy i am making final year project,i am making OTRS system in java em using sturts ,servlet,i push whole data by layered architecture,sir succesfully
help in insert code - JSP-Servlet
help in insert code  I have some doubt in following code. I want to insert value using prepared statement.we r accessing connection from other package.can u plz help me out.  hiimport java.io.*;import java.sql.*;import
method returning null on JSP page.Plz HELP!!!
method returning null on JSP page.Plz HELP!!!  public String...); return sAddress; } When I am calling this method on the jsp page... to Java, so please help me as it could also because of some silly mistake. Thanks
method returning null on JSP page.Plz HELP!!!
method returning null on JSP page.Plz HELP!!!  public String... on the jsp page it is returning null while the parameter values are successfully... here. I am new to Java, so please help me as it could also because of some silly
Required help about the concept of JSP page reloading
Required help about the concept of JSP page reloading  Hi, We have one application with Websphere portlet Factory generated JSP as front end... char set. Your inputs are highly appreciated. It will help us to have better
Required help about the concept of JSP page reloading
Required help about the concept of JSP page reloading  Hi, We have one application with Websphere portlet Factory generated JSP as front end... set. Your inputs are highly appreciated. It will help us to have better insight
New to JSP..need help to make & run a JSP program.
New to JSP..need help to make & run a JSP program.  Hi, I have installed Tomcat 5.5 on my system. Plz help me to make a simple JSP program... api.jar file inside the lib folder. Now create a jsp file:'hello.jsp'ADS_TO_REPLACE_3
CAN U HELP ME TO CODE IN JSP FOR ONLINE VOTING SYSTEM
CAN U HELP ME TO CODE IN JSP FOR ONLINE VOTING SYSTEM  can u help me to code in jsp for online voting system
JFreechart multi line chart help in JSP
JFreechart multi line chart help in JSP  Hi, I am am looking for and help in getting multi line chart with Jfree chart, i had manage to write a singe line chart but i need multy line can you please help. <%@page
Programming help Very Urgent - JSP-Servlet
Programming help Very Urgent  Respected Sir/Madam, Actually my code shows the following output: There is a combo box which contains all the ID's...;Hi friend, Read for more information, http://www.roseindia.net/jsp
help me on jstl- <c:url> - JSP-Servlet
help me on jstl c:url  what is jstl in java
Help Very Very Urgent - JSP-Servlet
Help Very Very Urgent  Respected Sir/Madam, I am sorry..Actually.../jsp/ Thanks.   function trim(stringToTrim... for more information, http://www.roseindia.net/jsp
Need help in image uploading - JSP-Servlet
Need help in image uploading  hii, i have one doubt in uploading an image in jsp. I want to display image from DB to my jsp page. For that i upload images to a specified folder and save the path of image in my DB. Its
Need Help in creating online quiz application using JSP - JSP-Servlet
Need Help in creating online quiz application using JSP  Hi, i am creating online Quiz application using JSP and MySQl ,Apache 6 in Netbeans IDE. i... ---------------------------------------------------------------------------------------------------- JSP Page
How to create own help forum - JSP-Servlet
How to create own help forum  Hi All, My client given requirements, they need to create their own help forum, I need to do case study for, how to create any forum. if you have any documentation or technical ideas please
Display JSP selected listbox and checkbox in xml-please help me
Display JSP selected listbox and checkbox in xml-please help me  Hi, I have three Listbox on my jsp page. I want to do following:ADS_TO_REPLACE_1... jsp. When user select something from 2nd list, third page contains checkbox
Re:Need Help for Editable Display table - JSP-Servlet
Re:Need Help for Editable Display table  Hi Genius i need a help in jsp to display editable display tag. I able to show the datagrid in jsp... Friend, Try the following code: Pagination of JSP page
please help me how to set up Netbeans for JSP
please help me how to set up Netbeans for JSP   Hi roseindian.net, the following page is what i have seen when i run jsp project.What I can do,please help me.We are ready to do INDUSTRIAL PROJECT by JSP. Thank you. ERROR

Ads