Client info taglib ver. 1.4


    Custom JSP taglib lets you read client's information in your web applications. Tag clientInfo lets you read on your server side some data about your client such as local time, timezone, screen's settings etc. You have to use this tag inside of our Form taglib or within HTML forms. Tag creates hidden variables initialized by user's settings. So you will be able to read these data as parameters in your requests. For example:
 


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

<form name="myForm" method="post" action=...>
...
  <c:clientInfo what="time" param="t" formName="myForm"/>
  <c:clientInfo what="java" param="j" formName="myForm"/>
...
</form>

here your form will have two hidden variables with names t and j. Parameter what describes an attribute for client's browser. And on your server-side application you can use for example a standard call like request.getParameter("t") etc.

Possible values are:

 time - describes a local time
 timeZone - describes a local timezone offset
 java - describes an availability for Java
 javaScript - describes an availability for JavaScript
 browser - describes a name for client's browser
 version - describes a version for client's browser
 width - describes a width for client's screen
 height - describes a height for client's screen
 depth - describes a color (pixel) depth for client's screen
 flash - flash enabled/disabled (1/0)
 database - HTML5 database presence (true/false)
 video - HTML5 video presence (true/false)

Tags are:

clientInfo

Tag creates a hidden form variable with client's data. Parameters are:

1) what Describes an attribute requested from client's browser. See above for the list of possible values.
2) param Optional parameter. Describes a name for your parameter. By default tag will use the value of what attribute here.
3) formName Optional parameter. Provides a name for your HTML form. You do not need this parameter if clientInfo tag will be used with our Form taglib.

for downloading:

Libraries: clienttag.jar  formtag.jar    Description: taglib.tld

© Coldbeans      Comments?

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

Also in Coldtags: