combox value are not show in a JSP
i have a combo box in a JSP after submit it does not show its value in logic.jsp
Home.jsp:
<html>
<body>
<select name='from_year'>
<%
for(int i=2010;i>2000;i--)
{
out.println("<option value="+i+">"+i+"</option>");
}
%>
<form method="" action="logic.jsp">
<input type="submit" name="submit" value="Go" ></td>
</form>
</body>
</html>
logic.jsp:
<%
String name=(String)request.getParameter("class_name");
%>
at run time logic.jsp show null.
please let me how i can find the value of combo box on logic.jsp.
View Answers
March 19, 2010 at 2:10 PM
Hi Friend,
We have modified your jsp files
1)Home.jsp:
<html>
<body>
<form method="post" action="logic.jsp">
<select name='from_year'>
<%
for(int i=2010;i>2000;i--)
{
out.println("<option value="+i+">"+i+"</option>");
}
%>
</select><br>
<input type="submit" name="submit" value="Go" >
</form>
</body>
</html>
2)logic.jsp:
<%
String name=(String)request.getParameter("from_year");
out.println(name);
%>
Thanks
Related Tutorials/Questions & Answers:
combox value are not show in a JSP - JSP-Servletcombox value are not
show in a JSP i have a combo box in a
JSP after submit it does not
show its
value in logic.jsp
Home.jsp:
<...
show null.
please let me how i can find the
value of combo box on logic.jsp.
Advertisements
combox combox i have one table in database item master..if i select one item throug combo box than other combobox
show item price only select item name... how i can implement through
jsp in a single
jsp page.
We have used
combox validation javascript code - JSP-Servletcombox validation javascript code hiiiiiii,
I want a javascript code for combobox field validation for my Lotus Notes web page....
thnx Hi
This is the source code of combobox validation in javascript
hide and show result in jsphide and
show result in jsp what codes do i have to change to make my result display if only i enter the correct
value?
suppose if i click search... prefix="c" uri="http://java.sun.com/
jsp/jstl/core"%>
<%@taglib prefix
JSP Value to JavaScript
JSP Value to JavaScript
JSP Value to JavaScript tells you to pass the
value from
JSP to JavaScript.
The JavaScript create a function
How to save value in JSP 324 2012-12-12
save
i want to save dis
value jsp to action ...how can i get all
value ..and store..how can its values goes...How to save
value in JSP Employee Name Time-IN Time-OUT
JSP hide and show tablesJSP hide and
show tables
In this tutorial, you will learn how to hide and
show html tables using
javascript in
jsp. Here is an example of simple
jsp code...="visible";
}
</script>
<input type="button"
value inserting value - JSP-Servlet the
jsp inserting the
value in the
jsp after that i want these
value inserted...;Inserting form data into database using
JSP and ServletGiven code will illustrate you, how one can get data into database using
JSP and ServletExample Code
Show image and text on same jsp pageShow image and text on same
jsp page Hi all,
I have to display image and text on the same
jsp page.
The text and image are both retrived from mysql database.
The image is shown correctly on seperate
jsp page but when shown
Show pdf's in web browser by using jsp?Show pdf's in web browser by using
jsp? Hi,
I want to display pdf file in browser by clicking the link, available in
JSP page.
When am trying... status - 404.
How can i resolve it in
JSP ModuleNotFoundError: No module named 'combox'ModuleNotFoundError: No module named '
combox' Hi,
My Python... '
combox'
How to remove the ModuleNotFoundError: No module named '
combox'... to install padas library.
You can install
combox python with following command
How to show data from database in textbox in jsp How to
show data from database in textbox in
jsp How to
show data from database in textbox in
jsp
Here is an example that retrieve the particular record from the database and display it in textbox using
JSP.
<
export value in csv from jspexport
value in csv from jsp Hi! i have creted a html form using javascript. i hv taken the array values in
jsp. nw i want to pass these array values from
jsp to csv file. so please help me how to send
passing value from javascript to jsp - JSP-Servletpassing
value from javascript to jsp Hi...
Is there any way to get the
value from the javascript and print it on the current
jsp page
or print an array onto the current
jsp page using javascript Hi Friend,
We
How to give the value - JSP-ServletHow to give the
value How to give the
value in following query... the
value into question mark?... Hi Friend,
Try the following code...").selectedIndex;
window.location.replace("http://localhost:8080/examples/
jsp Passing value in hyperlink - JSP-ServletPassing
value in hyperlink How to pass
value in anchor tag or HTML link from one
JSP page to another
JSP page ?and how to retrieve values in another..., Retrive
value from database Retrive data from database User Hi
Jsp Option Value
Jsp Option
Value
... a select box by retrieving the
value
from the database in
jsp. For further processing...
<select name="">
<option
value="">
session value not get in many jsp page.session
value not get in many
jsp page. I am using servlet to set...,response);
and get session
value on
jsp page by follwing:-
(adsbygoogle...)session.getAttribute("user");
this is work but when this code is use in other
jsp page its give
passing value fron script to scriplet - JSP-Servletpassing
value fron script to scriplet how to pass
value from Java..., or use a the name/
value query string.
your first should look something like:
Enter you
value here:
Then click the button to Check
you use
Get form value in same page - JSP-ServletGet form
value in same page Hello friends,
Can we get a form field
value in the same to be processed in java coding... friend,
For solving the problem visit to :
http://roseindia.net/
jsp/user
How to save and get value from JSP 324 2012-12-12
save
i want to save dis
value jsp to action ...how can i get all
value ..and store..how can its values goes...How to save and get
value from JSP Employee Name Time
How to pass the value from controller to jsp page ?How to pass the
value from controller to
jsp page ? HI
I need to pass the
value from controller to
jsp.
I use the way like this
Controller
request.setAttribute("msg", "Successfully Login");
In
jsp
${msg}
and then i
get a radio button click value - JSP-Servlet servlet from another
jsp i.e 'main.jsp', then you have to store the
value of id... have one probs that is i m getting a null
value i m calling getParameter("id") in servlet that is used in another
jsp so can i call getParameter("radio") i.e
get value from multiple textbox in jspget
value from multiple textbox in jsp how to get multiple textbox
value in another
jsp?
If i using the following code
<%for(int i=0;i<3;i++)
{%>
<td>name<input type="text" class="name" id="name">
how to get combo box value - JSP-Servlethow to get combo box value i have created 1 servlet & 1
jsp page... in combo box in
jsp page:
(small part of my code)
">
now i want the id in servlet page, that i have associated with
value i.e
"> bcoz i hav