Home Answers Viewqa JSP-Servlet include a delete option in every row of table in a JSP page

 
 


Shubham Tiwari
include a delete option in every row of table in a JSP page
0 Answer(s)      10 months ago
Posted in : JSP-Servlet

I have the following code of a JSP page...........

<blockquote>
  <p>&lt;%@taglib prefix="c"
  uri="http://java.sun.com/jsp/jstl/core"%> &lt;%@taglib prefix="sql"
  uri="http://java.sun.com/jsp/jstl/sql"
  %> <sql:setDataSource
  driver="com.mysql.jdbc.Driver"
  url="jdbc:mysql://localhost:3306/employee"
  user="root" password="shubham"/>
  <sql:query var="rs" sql="select* from
  login"> </sql:query> <html>
      <head>
          <title>JSP Page</title>
      </head>
      <body>
          <table border="1">
              <tr><td>Username </td><td>Password</td><td>Role</td><td>Edit</td><td>Delete</td></tr>
              <c:forEach var="data" items="${rs.rows}">
                  <tr><td>${data.username}</td><td>${data.pass}</td><td>${data.role}</td><td><a
  href="edit.jsp">Edit</a></td><td><a
  href="delete.jsp">Delete</a></td></tr>
              </c:forEach>
          </table>
      </body> </html></p>
</blockquote>

Now, I want that on clicking on Delete it should delete the particular record from the database and reflect the change on the page..............also if the user clicks on edit then he can change the password and role but not the username.........

please provide the code for this purpose........i.e edit.jsp and delete.jsp in JSTL only........

View Answers









Related Pages:
include a delete option in every row of table in a JSP page
include a delete option in every row of table in a JSP page  I have the following code of a JSP page........... <blockquote> <p>&lt;%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> &lt
delete row
delete row  how to delete row using checkbox and button in php...="delete" > <table width="100%" border="1"> <tr><td>... if(isset($_POST['delete'])) { for($i=0;$i<$row;$i++) { $delete
delete
delete  how delete only one row in the database using jsp.database is mysql   Hi Friend, Try the following code: 1)user.jsp: <%@ page.../jsp/deleteuser.jsp?id='+id,'mywindow','width=500, height=350,toolbar
Jsp include page problem
Jsp include page problem  I have included footer.jsp in all my pages... content is displayed ) How can I rectify this?   Hi, You have to delete... will find it in apache-tomcat-5.5.30\work\Catalina Delete the content
delete row from a table in hibernate
delete row from a table in hibernate  is there method to delete row in a table using hibernate like save(-) to insert row
Table's row elimination based on option choosen
Table's row elimination based on option choosen  I have a drop down with yes and no option.if i select yes in a table 2 new rows are shown and if i select no another question in row appears but the space occupied by the question
dynamic delete and insertion in tables
in the table named problem..and a submit solution button besides every row..whenever...dynamic delete and insertion in tables  hey... i have a problem..I am working on a problem management system..my code for a particular jsp page
delete multiple row using checkbox
delete multiple row using checkbox  delete multiple row using... fields bookid,author and title in the database. 1) Create book.jsp <%@page...; <table border="1"> <tr><td></td> <td><b>
dynamic delete and insertion in tables
in the table named problem..and a submit solution button besides every row..whenever...dynamic delete and insertion in tables  hey... i have a problem..I am working on a problem management system..my code for a particular jsp page
jsp:include page=.. and include file = ...
jsp:include page=.. and include file = ...   What is the difference between <jsp:include page = ... > and <%@ include file = ... >?.   <jsp:include page = ... >: This is like a function call from
Include static files within a JSP page
Include static files within a JSP page  How do I include static files within a JSP page?   Static resources should always be included using the JSP include directive. This way, the inclusion is performed just once
delete row from a table using hibernate
delete row from a table using hibernate  //code in java file String hql="delete from CONTACT c where ID=6"; Query query=session.createQuery... [delete from CONTACT] int i=query.executeUpdate
How to get table row contents into next jsp page
How to get table row contents into next jsp page  Hi, I have a 30... page.But the problem is how do i get the selected radio button table row contents in the next jsp page and display them Thanks Vikas   The given
How to delete the row from the Database by using servlet
How to delete the row from the Database by using servlet  Dear Sir... then the user data to be delete from the database table. Assume in Database table have...: Delete row from database using servlet   In that link solution
Java to create table in jsp file that include other jsp file
Java to create table in jsp file that include other jsp file  String jspContent = "table" += "tr" += "td" += "jsp:include page='fileSource'" //this line is not working properly... += "/td" += "/tr>" += "/table" Please refer
delete multiple row using checkbox
delete multiple row using checkbox  how to delete multiple row in a table which is connected to database using checkbox
delete multiple row using checkbox
delete multiple row using checkbox  how to delete multiple row in a table which is connected to database using checkbox
delete record
  We are providing you the jsp code that displays the database table data into the html table. Along each table row there is a checkbox consists of id of table. When the user selects the particular checkbox, that row will get
JDBC Delete Row In Table Example
JDBC Delete Row In Table Example : In this tutorial we will learn how delete specific row from the table use mysql JDBC driver.This tutorial defined how one or more specific  row delete from table that follow any given condition
jsp drop down-- select Option
jsp drop down-- select Option  how to get drop down populated dynamically   Hi Friend, Create table country(country_id,country) in database and try the following code: <%@page import="java.sql.*"%> <html>
Delete a row from database by id
Delete a row from database by id  I m creating a small application...) for "DELETE" AND "UPDATE". On clicking delete which is hyper link that particular row... all the values are added in to database and page is redirected to a new page
Deleting row and column from a table
Deleting row and column from a table  In this program ,we delete row... connection interface and java driver. After it we can delete row using "delete " keyword and also can delete column using "Alter" table commands
How to Extract row from table view using JSP Code - Java Beginners
How to Extract row from table view using JSP Code  Hi Friends... problem exist with retrival of row from a table on click of link. Table Structure... Email 1 A B C D E F G Update Delete On click of Update, entire row
show folder on server by clicking a row in table using jsp and ajax
show folder on server by clicking a row in table using jsp and ajax  Hi, i want a jsp page which has one dropdown and one textfield. when i click... display the table. Now if i click on a row it should open a folder in server
show folder on server by clicking a row in table using jsp and ajax
show folder on server by clicking a row in table using jsp and ajax  Hi, i want a jsp page which has one dropdown and one textfield. when i click... display the table. Now if i click on a row it should open a folder in server
How to know the selected row from table - JSP-Interview Questions
How to know the selected row from table  hi Every one....i am retriving data from database and i place that data into html table.in that table i... the selected row in that table.  Hi Friend, Please clarify your
select option value
select option value  if i select a value of any drop down then that value should be used in a select query of the next dropdown in jsp on same page????   Here is an example of dependent dropdown box in JSP. The values
select option value
select option value  if i select a value of any drop down then that value should be used in a select query of the next dropdown in jsp????   Here is an example of dependent dropdown box in JSP. The values come from
The Include Directive in JSP Page
The Include Directive in JSP Page   ...; <%@include file="relativeURL" %> <jsp:include page="relativeURL" />  or <jsp:include page="
Hibernate delete a row error - Hibernate
Hibernate delete a row error  Hello, I been try with the hibernate delete example (http://www.roseindia.net/hibernate/hibernate-delete.shtml...(); //======================================= sess = fact.openSession(); String hql = "delete from Contact contact
data grid with edit and delete options at each row.
data grid with edit and delete options at each row.  i want to display the table data in the format of data grid with edit and delete options at each row. i need it very urgently. advance thanks
Hoe to refresh a table row dynamically
Friend, Is there a link attribute with every row of a table through which we will able to refresh a particular table row? Please clarify this. Thanks...Hoe to refresh a table row dynamically  Want to refresh a table data
Delete and add row from Table View iPhone
Delete and add row from Table View iPhone In this tutorial will learn how to delete and also how to add row into the table view iPhone, with the help of edit... and Delete buttons on Table view. Table views are commonly found in iPhone applications
JSP include directive tag
JSP include directive tag  What is include directive tag in JSP?   Hi, The JSP include directive includes a static file or sends a request to a dynamic file. or The JSP include directive is used to include
Dynamic include jsp
Dynamic include jsp  I need dynamic include jsp page with an example
select option with text facility - JSP-Servlet
select option with text facility  Hello. My doubt is regarding how to provide facility to add text in a drop down box ie(select tag in html )in a jsp page. Consider we have a drop down list which is dynamically displayed using
jsp include action tag
that is included in the JSP page. When the include action is finished, the JSP... Tag: <jsp:include page="relativeURL" flush="{true|false}" /> <jsp...jsp include action tag  Defined jsp include action tag ?   
How To Include Two Jsp page in another jsp page?
How To Include Two Jsp page in another jsp page?  I use following code to Include Two Jsp Page Header and footer <%@include file="header.jsp... the following links: http://www.roseindia.net/jsp/jsp-include-file.shtml http
JavaScript add row dynamically to table
and into this page we have created a table with one row. We have one button "Add... JavaScript add row dynamically to table  ... to add row to a table dynamically then we can also do this with the JavaScript code
Include directive vs Include Action
;) includes file into the JSP page at compile time. Include directive should be used if the included code is in the same page. Include Action: Includes action (<jsp:include>) includes the output at runtime. Include action (runtime
delete and edit options in struts
align="center"> <tr><td> <jsp:include page="menu.jsp"><...delete and edit options in struts  Hi, I am doing an web application using struts, jsp, tomcat server, oracle as a database in netbeans IDE 7.1.2, I
delete and edit options in struts
align="center"> <tr><td> <jsp:include page="menu.jsp"><...delete and edit options in struts  Hi, I am doing an web application using struts, jsp, tomcat server, oracle as a database in netbeans IDE 7.1.2, I
delete and edit options in struts
align="center"> <tr><td> <jsp:include page="menu.jsp"><...delete and edit options in struts  Hi, I am doing an web application using struts, jsp, tomcat server, oracle as a database in netbeans IDE 7.1.2, I
delete and edit options in struts
align="center"> <tr><td> <jsp:include page="menu.jsp"><...delete and edit options in struts  Hi, I am doing an web application using struts, jsp, tomcat server, oracle as a database in netbeans IDE 7.1.2, I
delete and edit options in struts
align="center"> <tr><td> <jsp:include page="menu.jsp"><...delete and edit options in struts  Hi, I am doing an web application using struts, jsp, tomcat server, oracle as a database in netbeans IDE 7.1.2, I
delete and edit options in struts
align="center"> <tr><td> <jsp:include page="menu.jsp"><...delete and edit options in struts  Hi, I am doing an web application using struts, jsp, tomcat server, oracle as a database in netbeans IDE 7.1.2, I
delete and edit options in struts
align="center"> <tr><td> <jsp:include page="menu.jsp"><...delete and edit options in struts  Hi, I am doing an web application using struts, jsp, tomcat server, oracle as a database in netbeans IDE 7.1.2, I
delete and edit options in struts
align="center"> <tr><td> <jsp:include page="menu.jsp"><...delete and edit options in struts  Hi, I am doing an web application using struts, jsp, tomcat server, oracle as a database in netbeans IDE 7.1.2, I
delete and edit options in struts
align="center"> <tr><td> <jsp:include page="menu.jsp"><...delete and edit options in struts  Hi, I am doing an web application using struts, jsp, tomcat server, oracle as a database in netbeans IDE 7.1.2, I
delete and edit options in struts
align="center"> <tr><td> <jsp:include page="menu.jsp"><...delete and edit options in struts  Hi, I am doing an web application using struts, jsp, tomcat server, oracle as a database in netbeans IDE 7.1.2, I

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.