I am starting to work with Struts and I would like to use the onClick attribute inside a <html: tag, however I don't know how to use it. The lines where I want it to be added are:
I just one the onClick to be in one of the tags!! but in neither of them (<html:link>, <html:button>) is defined that attribute so I was wondering if there is another way of doing.
Thanks in advance
Lorand Komaromi
Ranch Hand
Joined: Oct 08, 2009
Posts: 276
posted
0
Mnau Lubi wrote: but in neither of them (<html:link>, <html:button>) is defined that attribute
onclick is defined in both link and button tags!
OCJP 6 (93%)
Mnau Lubi
Ranch Hand
Joined: Mar 17, 2010
Posts: 32
posted
0
I hope it was but it is not
In Eclipse it is underlined in yellow and it says: Undefined attribute name "onClick". Besides, when I represent the webpage with the browser, I get an exception saying: The attribute onClick is not valid in the specified TLD
Mnau Lubi
Ranch Hand
Joined: Mar 17, 2010
Posts: 32
posted
0
AAAHHHH!!
Ok! It works with onclick! No capital letter! Thanks you were right
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.