Creating WAP application with jsp/asp
(BY:DarkMan)
Using ASP or JSP to create dynamic WML content is very easy. The only thing to note is to configure the server so that its script output type is “text/vnd.wap.wml”, or directly set the output type in the script.
The following is an example of using JSP to output dynamic WML content:
<?xml version=”1.0″?>
<!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.1//EN”
“http://www.wapforum.org/DTD/wml_1.1.xml”>
<% response.setContentType(“text/vnd.wap.wml”); %>
<wml>
<card id=”start”>
<do type=”accept”>
<go href=”index.jsp#test”/>
</do>
<p>Output dynamic WML with jsp:<br/>
Select accept to continue< br/>
</p>
</card>
<card id=”test”>
<do type=”prev”>
<prev/>
</do>
<%
out.println(“<p>”);
out. Println (“Hello, test succeeded! <br/>”);
out.println(“</p>”);
%>
</card>
</wml>