SMS sending taglib ver. 1.3

    Custom JSP tags. Lets you send SMS through service companies like www.deltica.com or www.sms-wap.com.

For example:
 


<%@ taglib uri="taglib.tld" prefix="send" %>
<html>

<send:SMS script="http1.deltica.com/http/gateway.url.asp" response="A">

<send:setParam name="USER" value="your_user_name" />
<send:setParam name="PASS" value="your_password" />
<send:setParam name="TO" value="destination_phone_number" />
<send:setParam name="ORIG" value="your_phone_number" />
<send:setParam name="CLASS" value="TEXT" />
<send:setParam name="MSG" value="your_message" />

</send:SMS>

SMS gateway response is: <%=A%>
</html>

Tags are:

SMS

Sends SMS message through the given URL. If you set parameter response you may examine gateway response. You must set additional parameters (destination, message itself etc.) within the body of this tag. Parameters are:

1) script SMS gateway script
2) response name for the page scope variable (type is java.lang.String) for gateway response.

setParam

Sets parameter for SMS message. You must use this tag within the body of SMS tag. Parameters are:

1) name parameter name.
2) value parameter value.
 
 

for downloading:

Library: smstag.jar    Description: taglib.tld

 © Coldbeans      Comments?

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