• 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

html:select : how to/ can u use onselect()??

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there
I am trying to dynamically submit a form when something is selected in a dropdown menu.
I see from the Struts API that the html:select tag inherits onselect() from the basehandler() but I cant seem to use it, it tells me that the method is not defined in the DTD.
I am using the "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"
Any help would be appreciated
 
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
had the same problem a while back, and because we extended "org.apache.struts.taglib.html.TextTag" we simply included the output we wanted in the doStartTag method, but you can also just add it to your jsp, anyhat, what you can do, not saying its the best solution, but you can escape it as follows ,

"\" onselect=\"doWhateverOnSelect");


you can also add the attribute to your new Tag
[ June 17, 2003: Message edited by: Ta Ri Ki Sun ]
 
Busty Sinclair
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I used the onchange event instead as follows:

thanks
 
reply
    Bookmark Topic Watch Topic
  • New Topic