Java 17 Recipes


Download 3.2 Mb.
Pdf ko'rish
bet245/245
Sana02.06.2024
Hajmi3.2 Mb.
#1839910
1   ...   237   238   239   240   241   242   243   244   245
Bog'liq
Java 17 Recipes

A heading












































Chapter 13 Java Web appliCations


490




ElementAttribute Result
inputtype="text"
inputtype="password"
inputtype="checkbox"
A
B
Chapter 13 Java Web appliCations


489
C
inputtype="radio"
yes
no
inputtype="submit"
inputtype="reset"
inputtype="button"
textarea
fieldset

Dimensions:
Width
Height
select / option


Hello World!
Hello World!
Hello World!
<%
String userAgent = request.getHeader("user-agent");
out.println("
user-agent " + userAgent);
%>
\r\n");
String userAgent = request.getHeader("user-agent");
out.println("
User-agent: " + userAgent);
out.write("\r\n");
out.write("Hello World!\r\n");
out.write("
Map size = <%=map.size()%>


<%
for (int k = 0; k < keys.length; k++) {
String[] pars = request.getParameterValues((String)keys[k]);
out.print("");
}
%>
Map elementPar namePar value[s]
" + k + "'" + keys[k] + "'");
Chapter 13 Java Web appliCations


498
for (int j = 0; j < pars.length; j++) {
if (j > 0) out.print(", ");
out.print("'" + pars[j] + "'");
}
out.println("

and

first name:



last name:


" + today +
" GET parameter: " + lastname +
" " + today +
" POST parameter: " + firstname+
"






Chapter 15 JSON aNd XML prOCeSSiNg


545







Id Name Diagnosis










Chapter 15 JSON aNd XML prOCeSSiNg


549










Id Name Diagnosis







Download 3.2 Mb.

Do'stlaringiz bilan baham:
1   ...   237   238   239   240   241   242   243   244   245




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling