• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to know which button in my custom tag program

 
cb poo
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
I have create a custom tag(myButtonTag) that extends org.apache.struts.taglib.html.ButtonTag.

in the jsp, i have two button(button1 and button2) that will call to myButtonTag.

how do i identified in the myButtonTag java ,which button(button1 or button2?) i currently work on?

Is there any stuff like if i println, i will see the current button name that i work on ?

have a nice day.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"cb poo" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy. User names cannot be obviously fake and must constist of a first name and a last name.

You can change your user name here.

Thanks! and welcome to the JavaRanch!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!