aspose file tools
The moose likes Struts and the fly likes onClick attribute with a <html: > tag Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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
 
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.
 
subject: onClick attribute with a <html: > tag
 
Similar Threads
Action executed two times
Using popup with html:link
struts tags
<html:button> problem?
assign string to an extern page !!!!!!