Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic Buttons

 
maximiliano degue
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello people. Im new in coderanch (And also new with english, so sorry if i make some grammatical mistakes and stuff like that :P)

here is the problem.

Im iterating the list "listaEmpleados", and using as object "iEmpleado"

its working fine to show the table with all the iEmpleado, but now i need to create a button to delete that iEmpleado, and i dont know how. :P
if you need something else from my code, just tell me

thanks a lot people!

 
Joe Ess
Bartender
Posts: 9319
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use a url tag to create a url with parameters, for example, the index of iEmpleado or some other identifier, then use the url id in an anchor tag.
 
maximiliano degue
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe Ess wrote:You can use a url tag to create a url with parameters, for example, the index of iEmpleado or some other identifier, then use the url id in an anchor tag.

Sorry, i didnt mention that i have to use Struts 1 (and i red that url tags are for Struts 2).
in case they work in struts 1, do you have a simplier example? because i didnt get it.

thanks anyway!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic