Button taglib ver. 1.4

    Custom JSP tag. Lets you create HTML buttons with a confirmation dialog. Button submits the current form after the confirmation.

For example:
 


<%@ taglib uri="taglib.tld" prefix="b" %>

<form method=post action=your_page.jsp>
    ...
    <b:button name="del" value="Delete" question="Are you sure?"/>
    ...
</form>

and you will get some like this:

Tags are:

button

Creates button control. Parameters are:

1) name a name for element
2) value Defines a title for button.
3) question Optional parameter. Defines a question for confirmation dialogue.
4) className Optional parameter. Defines a CSS class name
5) style Optional parameter. Defines a CSS style
6) title Optional parameter. Defines a tooltip

for downloading:

Library: buttag.jar    Description: taglib.tld

© Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.

Also in Coldtags: