forked from xaxaxa/workspace
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path1.cppsp
More file actions
56 lines (53 loc) · 913 Bytes
/
1.cppsp
File metadata and controls
56 lines (53 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<%#
#include <iostream>
#include <unistd.h>
#include <sys/types.h>
#include <stdexcept>
#include <cppsp/common.H>
#include <delegate.H>
#include <iostream>
int aaaaa=0;
%>
<%@ class sss %>
<%$
void init() {
doReadPost=true;
}
void test() {
cout << aaaaa << endl;
}
/*
void finalize() {
const char* tmp="fsck";
response->outputStream->write(tmp,4,{&sss::_cb1,this});
}
void _cb1(int i) {
finalizeCB();
}*/
%>
form:
<table border="1">
<%
for(auto it=request->form.begin();it!=request->form.end();it++) {
%>
<tr>
<td><%=htmlEscape((*it).first.toSTDString())%></td>
<td><%=htmlEscape((*it).second.toSTDString())%></td>
</tr>
<%
}
%>
</table>
querystring:
<table border="1">
<%
for(auto it=request->queryString.begin();it!=request->queryString.end();it++) {
%>
<tr>
<td><%=htmlEscape((*it).first.toSTDString())%></td>
<td><%=htmlEscape((*it).second.toSTDString())%></td>
</tr>
<%
}
%>
</table>