1
2
3
4
5
6
7
8
9
10
11
12
|
<html>
<head>
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=GB18030"
>
<title>Include</title>
</head>
<body>
<%double i = Math.random();%>
<jsp:include page=
"come.jsp"
>
//加载come.jsp
<jsp:param name=
"number"
value=
"<%=i%>"
/>
//传递参数
</jsp:include>
</body>
</html>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<html>
<head>
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=GB18030"
>
<title>come</title>
</head>
<body bgcolor=cyan>
<Font Size=
3
>
<%
//获得includeAction.jsp传来的值:
String
str = request.getParameter(
"number"
);
double n = Double.parseDouble(str);
%>
The value form includeAction
is
:<br> <%=n%>
</Font>
</body>
</html>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<
sqlMap
namespace
=
"Category"
>
<
typeAlias
alias
=
"category"
type
=
"com.dooioo.samples.blog.model.Category"
/>
<
select
id
=
"query"
resultClass
=
"category"
>
select * from category where status != -1
</
select
>
<
insert
id
=
"insert"
parameterClass
=
"category"
>
insert into category(name) values (#name#)
</
insert
>
<
update
id
=
"delete"
parameterClass
=
"int"
>
update category set status=-1 where id=#id#
</
update
>
<
select
id
=
"queryForPaginate2"
parameterClass
=
"category"
resultClass
=
"category"
>
mst_sp_pageshowex4 '$columns$ ','$table$','$where$','$orderBy$',$pageSize$,$pageNo$
</
select
>
<
select
id
=
"count2"
parameterClass
=
"category"
resultClass
=
"integer"
>
sp_pagecount '$table$','$where$'
</
select
>
</
sqlMap
>
|