File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

onClick attribute with a <html: > tag

 
Mnau Lubi
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 276
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Mnau Lubi
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AAAHHHH!!

Ok! It works with onclick! No capital letter! Thanks you were right
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic