wood burning stoves 2.0*
The moose likes JSP and the fly likes onkeyup event in custom tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "onkeyup event in custom tags" Watch "onkeyup event in custom tags" New topic

onkeyup event in custom tags

manisha Gupta Garg
Ranch Hand

Joined: Jul 03, 2009
Posts: 41
How to include “onkeyup” event in custom tags in jsp?

We have one custom tag called “reportadmin” as follows-

We need to have onkeyup event in this tag. The above tag is being used for displaying the list of application from database in the form of <select> combobox.
After selecting the application from this, the another combobox having groups under that application is to be reloaded.

I have defined the “onkeyup” attribute in .tld file and have included getter setter methods for “onkeyup” in class file.
Please guide me how to proceed.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60766

As you already have the attribute set up and working, just make sure that the HTML you generate contains the correct markup to represent the event attribute.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
manisha Gupta Garg
Ranch Hand

Joined: Jul 03, 2009
Posts: 41
thanks !

it worked using "onblur" event.

I agree. Here's the link: http://aspose.com/file-tools
subject: onkeyup event in custom tags
Similar Threads
To Hans: Classic Tag, Simple Tag and Tag files
How to pass attribute to a custom tag only if it evaluates to a non null value
Struts 2 Design and Programming table of contents
JSP Newbie - Dynamic ComboBox
Question on Tag files