License taglib ver. 1.3

    Custom JSP taglib. This taglib does not describe how to license Coldtags suite or some like that. License taglib adds a bit more automation to your web development. Sure, you've seen many times a typical downloading page. Usually there is some form that asks you about your accepting/declining for license terms. This taglib simply outputs such a standard form with buttons like Accept/Decline. For example:

BEFORE DOWNLOADING THE SOFTWARE, CAREFULLY READ THE TERMS AND CONDITIONS OF THIS LICENSE. BY ORDERING, DOWNLOADING OR USING THE SOFTWARE, YOU ARE CONSENTING TO BE BOUND BY AND ARE BECOMING THE LICENSEE TO THIS LICENSE. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS LICENSE, DO NOT CONTINUE WITH THE DOWNLOAD.

And here is the code:
 


<%@ taglib uri="taglib.tld" prefix="l" %>
...
<l:acceptDecline action="http://www.servletsuite.com/servlets/licensetag.jar"/>

More precisely taglib outputs a form with two buttons. The first button ('Accept') submits the form, the second ('Decline') by default returns back to the previous page. All the labels and actions are customizable. E.g.:
 


<l:acceptDecline>
  <l:acceptLabel>Accepted</l:acceptLabel>
  <l:acceptAction>http://www.servletsuite.com/servlets/licensetag.jar</l:acceptAction>

  <l:declineLabel>Declined</l:declineLabel>
  <l:declibeAction>/index.jsp</l:declineAction>
</l:acceptDecline>

Tags are:

acceptDecline

Body tag lets you output license acception form. Parameters are:

1) action Optional parameter. Describes an action for 'Accept' button

acceptLabel

Body tag lets you define a label for 'Accept' button. Default value is Accept. Parameters are: none

acceptAction

Body tag lets you define an action for 'Accept' button. Parameters are: none

declineLabel

Body tag lets you define a label for 'Decline' button. Default value is Decline. Parameters are: none

declineAction

Body tag lets you define an action for 'Decline' button. By default it will be a return to the previous page. Parameters are: none

for downloading:

Library: licensetag.jar    Description: taglib.tld

© Coldbeans      Comments?

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