Create a WAP application using JSP/ASP
(BY: DarkMan)
It is very easy to use ASP or JSP to create dynamic WML content. The only thing to note is to configure the server to set its Script output type to "text/vnd. wap. wml", or directly set the output type in the script.
The following is an example of outputting dynamic WML Content Using JSP:
<? 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> use JSP to output dynamic WML: <br/>
Select Accept to continue! <Br/>
</P>
</Card>
<Card id = "test">
<Do type = "prev">
<Prev/>
</Do>
<%
Out. println ("<p> ");
Out. println ("Hello, test successful! <Br/> ");
Out. println ("</p> ");
%>
</Card>
</Wml>