This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL Pagination and Deletion

 
kri shan
Ranch Hand
Posts: 1460
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to do pagination using jstl tags in jsp page and each record in the pagination has option to delete. ( When the user clicks delete button, how to delete only particular record using jstl tag


Pagination Query result:

Id Name Department
1 James Finance Delete
2 Jim Marketing Delete
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSTL tags are for display, not for DB operations. So you won't be using JSTL to delete anything,

You also should not use the JSTL &<sql:> tags -- they're not for production use.
 
kri shan
Ranch Hand
Posts: 1460
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not production application. It's my personal application.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's not a great excuse for following poor practices. But it is your choice.
 
kri shan
Ranch Hand
Posts: 1460
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to pass the value of Id, when user selects respective Delete button.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic