Creating WAP application with jsp/asp

Time:2022-6-11

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>

Recommended Today

Without vim-airline/lightline.vim, how to make a beautiful vim status bar by hand

I shallspace-vimThe status bar is extracted separately into a plugin:https://github.com/liuchengxu…, you can install the trial directly. First look at the final effect: Know yourself and the enemy, and you will not be imperiled in a hundred battles. Let's first analyze what are the benefits of using airline and lightline? Pretty, cool, no doubt about it. […]