Linked Questions

0 votes
2 answers
14k views

Edit a table in JSP page which edits the database [duplicate]

my question is simple,i have made a JSP page having a table which displays the content of the database,now what m trying is to edit the details in table,which simultaneously edits the values in the ...
ABV's user avatar
  • 107
2 votes
1 answer
8k views

Servlets-JSP: How to put a delete-modify button for every row of HTML table! [duplicate]

I'm trying to add to every row of a HTML table a "delete" and a "modify" button. If I use this method, the value of the "id" is alawys the value of id from the first row, even if I pressed the button ...
cc.'s user avatar
  • 5,583
1 vote
4 answers
8k views

how to get the value of name field of submit button which i can view on page source? [duplicate]

I have created one HTML form which consists of multiple buttons of "edit" and "delete". I put them in a for loop in order to view many of them on another page. How can I get the name field of the ...
user1950705's user avatar
0 votes
1 answer
5k views

Deleting table row using jsp and servlet [duplicate]

Hello everyone hope you having a good day,because i'm not xD , i'm new to the web programming and i've started with JSP and Servelts to do web operation my problem is when i click on "delete" it ...
Anas Haxer's user avatar
0 votes
3 answers
3k views

How to link different URLs to different items in forEach loop in JSP page? [duplicate]

I have a facultylist.jsp page which displays List<Faculty> as a request attribute parameter in forEach loop and I want every item in this loop to be a link to specified faculty facultyview.jsp. ...
marknorkin's user avatar
  • 4,044
1 vote
1 answer
2k views

How to use session.setAttribute("id", id) onclick a button in java servlet? [duplicate]

I want to store id in httpsession when a button is clicked so that I can use it in another servlet. HttpSession session = request.getSession(); <button> <a href = "\"http://localhost:8080/...
Anshu Ahirwar's user avatar
0 votes
2 answers
2k views

JSP call method from link [duplicate]

I'm new to JSP, and would like to offer users an option to logout from their current session. I was wondering if it is possible to call a method which contains the logging-out logic, from a link tag (...
Dot NET's user avatar
  • 4,887
0 votes
1 answer
1k views

How to perform UPDATE and DELETE operation simultaneously on JSP page ? [duplicate]

I want to perform multiple operation Like DELETE and UPDATE to do so I Need to send Data to Controller, where I Am doing Mistake?? Following is my JSP page <%@ page language="java" contentType="...
Anand Deshmukh's user avatar
0 votes
1 answer
821 views

Jsp get selected item from ul jstl [duplicate]

I have an element inside a list which i populate with jstl. the problem i have is that i a have a button with a form inside each loop. when a user clicks i need to know what object he has selected. ...
S.Regusci's user avatar
1 vote
1 answer
812 views

How can i send data from one jsp to other pressing a button [duplicate]

I am a beginner in web-development.I have used jsp and servlet to my project.I have created two jsp file one the content the values of all user and one that content the value of specific user.How can ...
psilos's user avatar
  • 101
-1 votes
1 answer
968 views

How to pass scriptlet value from JSP to Servlet [duplicate]

I am trying to develop simple shopping cart application. So I have simple database table in Derby DB. From there I retrieved data to a table in JSP. Now i want to transfer that values to servlet. And ...
Amila's user avatar
  • 1
0 votes
1 answer
859 views

getParameter() from servlet in loop [duplicate]

I am developing "eShop" web application. I list all my products on jsp page ( with while loop) and each product has a button with value="Add to Card" and name=<%idArticle%>. When user clicks on ...
Dhia1987's user avatar
0 votes
2 answers
848 views

How to delete Table record from jsp page (table without SQL)? [duplicate]

<section> <div class="container"> <table class="table table-striped table-bordered table-hover"> <thead> <tr> <th>Id</th> ...
Snow's user avatar
  • 1
0 votes
1 answer
426 views

Get Data from one JSP to another JSP Where JSP data is show using foreach Loop [duplicate]

I'm displaying my data in JSP using foreach from session variable.That session variable is Arraylist of products. I want to send the data from JSP to another JSP when user clicks on one product. How ...
Sasi Raj's user avatar
0 votes
1 answer
477 views

How I can send parameter to a JSP servlet with a c:forEach form? [duplicate]

I have a problem mixing JSP Servlet and c:forEach form... The problem is that whatever my id is, the HTML form will always send the first in the list, refered to ' name="id" '. Is there a solution ...
jozinho22's user avatar
  • 520

15 30 50 per page