• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

onClick attribute with a <html: > tag

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
AAAHHHH!!

Ok! It works with onclick! No capital letter! Thanks you were right
reply
    Bookmark Topic Watch Topic
  • New Topic