i am new to JSP. I am having a drop down combo box names as "fname". When I will select any value from the drop down combo, than in the SAME PAGE only, i want to display same data in table retrieving from database. the database i.e. the table is in MS Access.
I have made the connection and can retrieve data from databse (as i have tried out in different JSP file). but i nedd to display the table in the same page when i will select a data from the combo. for different value selected different data will be displayed after retrieving from table. i cannot use any thing other than this.
i cannot use servlet or SQL, as the specification is like this.
my code is ::-
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
You can have a 'iframe' in your page, which will display the data based on combo box value selected in the main page.
I am new to JSP. Can you please get me the code for my problem.
Where to declare the 'iframe'. the code is getting connected to the Database, but i am not able to display the data in the same page.
J. U. Ray, please Ease Up and Use Code Tags when you post a source code. Also you are creating JDBC connections in your JSP which is not a good practice. Usually requests go through a servlet before reaching a JSP and that servlet does all the logic and database work...