This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes JSTL Pagination and Deletion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL Pagination and Deletion" Watch "JSTL Pagination and Deletion" New topic
Author

JSTL Pagination and Deletion

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1396
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

Joined: Jan 10, 2002
Posts: 63208
    
  69

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1396
It's not production application. It's my personal application.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63208
    
  69

That's not a great excuse for following poor practices. But it is your choice.
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1396
How to pass the value of Id, when user selects respective Delete button.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: JSTL Pagination and Deletion
 
It's not a secret anymore!