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>