Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to add link to display:table to a method in the DispatchAction class

 
sarah jj
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i am using the tag <display:tag> in order to display the data of my database and i want to have in addition a column containing a link (image) to the method supprim() in the class DispatchAction so i can delete my row with that link and i did user decorator but it didn't work could you please help me
here is the code
consulterUtilisateur.jsp


my list is a collection of the object MonUtilisateur

MonUtilisateur.java



my decorator is the class UserDecorator.java


finally this is the method of my action or DispatchAction that i want to call through the link


 
sarah jj
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
i just want to put the answer if anyone have the same problem
here we don't need a decorator it's a simple href in the jsp page but we need to define my id so i can get my current row in my action class

jsp


and for the method supprim() in my DispatchAction class i add



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic