Custom JSP tags library lets you deploy Mobile Network Lookup API from Ericsson Labs.
This API lets developers lookup the mobile network information, such as operator, country, etc about the customer. Taglib uses IP address (right from the request or directly specified) and returns
back customer's home network information. This component can help you develop more personalized web applications. For example:
<%@ taglib uri="taglib.tld" prefix="m" %>
<m:MobileLookup id="MobileLookup"/> Country code: <%=MobileLookup.getCountry()%> <br/> Country name: <%=MobileLookup.getCountryName()%> Taglib creates a page scope variable (type is com.cj.mobile.MobileLookupBean) with data. You can use the following
methods:
getCountry() - provides a country code getCountryName() - provides a country name getNetworkCode() - provides a network code getOperator() - provides a name for the operator getTime() - provides a time for data update Tags are: MobileLookup Body tag lets you obtain home network info for mobile users. Attributes are: 1) key Optional attribute. Describes a developer key for this API
for downloading: Library: mobilelookuptag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|