aspose file tools*
The moose likes Struts and the fly likes how to add link to display:table to a method in the DispatchAction class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to add link to display:table to a method in the DispatchAction class" Watch "how to add link to display:table to a method in the DispatchAction class" New topic
Author

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

sarah jj
Greenhorn

Joined: Jul 27, 2010
Posts: 6
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

Joined: Jul 27, 2010
Posts: 6
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



 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to add link to display:table to a method in the DispatchAction class