wood burning stoves 2.0*
The moose likes Struts and the fly likes onClick attribute with a <html: > tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "onClick attribute with a <html: > tag" Watch "onClick attribute with a <html: > tag" New topic
Author

onClick attribute with a <html: > tag

Mnau Lubi
Ranch Hand

Joined: Mar 17, 2010
Posts: 32
Hi all!!

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
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
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
AAAHHHH!!

Ok! It works with onclick! No capital letter! Thanks you were right
 
jQuery in Action, 2nd edition
 
subject: onClick attribute with a <html: > tag