function editRecord(id){ var f=document.form; f.method="post"; f.action='edit.jsp?id='+id; f.sub" name="description">

in the below code two errors are there one at the button onclick atttibute and the next is at the next button

Ads

 
 

Share on Google+Share on Google+

sanni
in the below code two errors are there one at the button onclick atttibute and the next is at the next button
0 Answer(s)      6 years ago
Posted in : JSP-Servlet

<%@ page import="java.sql.*" %>



<% Connection con = null; String url = "jdbc:mysql://localhost:3306/"; String db = "test"; String driver = "com.mysql.jdbc.Driver"; String userName ="root"; String password="root"; int sumcount=0; Statement st; try{ Class.forName(driver).newInstance(); con = DriverManager.getConnection(url+db,userName,password); String query = "select * from employee"; st = con.createStatement(); ResultSet rs = st.executeQuery(query); %> <% while(rs.next()){ %> <% } %> <% } catch(Exception e){ e.printStackTrace(); } %>
NameAddressContact NoEmail
<%=rs.getString(2)%> <%=rs.getString(3)%> <%=rs.getString(4)%> <%=rs.getString(5)%>

Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
in the below code two errors are there one at the button onclick atttibute and the next is at the next button
in the below code two errors are there one at the button onclick atttibute and the next is at the next button  <%@ page import="java.sql.*" %> function editRecord(id){ var f=document.form; f.method="post
next button in servlet
next button in servlet  i want to add next,previous button to get next record in my servlet. can you explain the logic to do
Advertisements
pass radio button values to next page
pass radio button values to next page  how to pass selected radio button values which coming from mysql database to next page using php. Please show me with examples
How to Display next Record from Database "On the Click of Next Button" USING ARRAYLIST
How to Display next Record from Database "On the Click of Next Button" USING ARRAYLIST  How to Display next Record from Database "On the Click of Next Button" USING ARRAYLIST,please send answer as soo as possible
change database values when click next button on jsp page
change database values when click next button on jsp page  How to retrive database values rondomly and display jsp page ,when user click next and previous bottons change the values on jsp page
How to Display next Record from Database "On the Click of Next Button" USING ARRAYLIST
How to Display next Record from Database "On the Click of Next Button" USING ARRAYLIST  In this code how i will use arraylist(which store all my records in index form) to show next data on button click,so that it will goes
How to Display next Record from Database "On the Click of Next Button" USING ARRAYLIST
How to Display next Record from Database "On the Click of Next Button" USING ARRAYLIST  In this code how i will use arraylist(which store all my records in index form) to show next data on button click,so that it will goes
how to make previous and next Button Display Data in php
how to make previous and next Button Display Data in php  <?php session_start(); include("database.php"); extract($_POST); extract($_GET...; } else { if($submit=='Next Question' && isset($ans
How to show next question from database on the click of next button..(Struts & Hibernate)
How to show next question from database on the click of next button..(Struts.... Problem.: When m clicking my next button it is not showing another question...++; } } %> next jsp called:flashPage.jsp <%-- Document : home
How to show next question from database on the click of next button..(Struts & Hibernate)
How to show next question from database on the click of next button..(Struts.... Problem.: When m clicking my next button it is not showing another question...; next jsp called:flashPage.jsp <
How to Display Next question from database after clicking Next Button using "Arraylist concept"
How to Display Next question from database after clicking Next Button using "Arraylist concept"  </tr> <%if (pageName.equals("1")) {%> <tr> <td> <div style
How to use next and previous button(or href) for database table that is retrieved from MySQL DB.
How to use next and previous button(or href) for database table that is retrieved from MySQL DB.  Initially,display 7or10 records on a jsp pageand when click on the NEXT button(or href link) then display next 7 records
HTML Button onclick get ID of Button
HTML Button onclick get ID of Button  How i can get the ID of HTML Button on click?? I wanted to do it using JavaScript function. Thanks
How to use next and previous button(or href) for database table that is retrieved from MySQL DB using jsp,jstl,javascript
How to use next and previous button(or href) for database table that is retrieved from MySQL DB using jsp,jstl,javascript  when click on the next button/link then it must display next 10 record from database and same for previous
How to change HTML button onclick to autoclick - javascript function
How to change HTML button onclick to autoclick - javascript function  Can any one give me a block of code to change the HTML button onclick to autoclick. The method must be in Java Javascript
How to change HTML button onclick to autoclick - javascript function
How to change HTML button onclick to autoclick - javascript function  Can any one give me a block of code to change the HTML button onclick to autoclick. The method must be in Java Javascript
button
button  can i give multiple commands on click of a button? if yes how can i do that?? multiple commands can we retriving dat from database, capturing data, moving to next page.. etc
button
button  can i give multiple commands on click of a button? if yes how can i do that?? multiple commands can be retriving dat from database, capturing data, moving to next page.. etc
iphone button change view
iphone button change view Final application will look like this:       In this tutorial will learn button change view i.e. when button is clicked will move to next view. This application is View Based
to change the styleclass color of <apex:outputlabel > onclick button function in javascript
to change the styleclass color of onclick button function in javascript  in the below code if user enters null value and click on save button , then through javascript how can we change the color of outputlabel to red color
Struts application two submit button
;/html> Here am using two submit button one is login and another one is new user registration . I want process one button is login purpose and another one new...Struts application two submit button  Hai, i'm new in struts
facebook like button code
facebook like button code  How to create a facebook like button? can anyone share the code..?? Thanks in advance
Button
Button  How to use image for button in JSF
code for insert button
code for insert button    i want code for insert button(in image...;The given code uses Swing components to create a image button and allow the user to enter name and address. As the user clicks the image button, the data will get
code to disable back button of browser
code to disable back button of browser  code to disable back button of browser
code to disable back button of browser
code to disable back button of browser  code to disable back button of browser
BROWSE BUTTON CODE
BROWSE BUTTON CODE  HOW TO STORE THE FILE BROWSE TO THE DATABASE   JSP File Upload 1)page.jsp: <%@ page language="java" %> <HTML> <HEAD><TITLE>Display file upload form to the user</TITLE>
BROWSE BUTTON CODE
BROWSE BUTTON CODE  HOW TO STORE THE FILE BROWSE TO THE DATABASE   JSP File Upload 1)page.jsp: <%@ page language="java" %> <HTML> <HEAD><TITLE>Display file upload form to the user</TITLE>
Java Next()
in Java. The description of the code is given below for the usage of the method. Description of the code: Here, you will get to know about the next() method... that if the iteration has more than one element then the next() method will return the next element
insert , edit , and delete button in one jsp page
insert , edit , and delete button in one jsp page  hello I want to ask about the way of creating a jsp page contains insert , edit , and delete buttons and manipulate data in database directly. any help please or hints
Java radio buttons and button groups two values
Java radio buttons and button groups two values  hi i have a problem... is clicked depending on which button was clicked male or female be sent to the data base. i use netbeans 7.2 and mysql 5.5 here is my code /* * To change